/**
 * Pflugtopia Newsletter - Form & Confirmation Styles
 */

:root {
    --pflugtopia-nl-accent: #7a9f8a;
    --pflugtopia-text: #62615c;
    --pflugtopia-text-dark: #333;
    --pflugtopia-border: #ddd;
}

/* =====================================================
   NEWSLETTER FORM
   ===================================================== */

.pflugtopia-newsletter-wrapper {
    width: 100%;
}

/* Header */
.pflugtopia-newsletter-header {
    margin-bottom: 24px;
    text-align: center;
}

.pflugtopia-newsletter-title {
    font-family: var(--pflugtopia-font-heading, 'Rufina', Georgia, serif);
    font-size: 28px;
    font-weight: 400;
    color: var(--pflugtopia-text-dark);
    margin: 0 0 8px;
    line-height: 1.3;
}

.pflugtopia-newsletter-subtitle {
    font-family: var(--pflugtopia-font-body, 'Source Sans Pro', sans-serif);
    font-size: 16px;
    font-style: italic;
    color: var(--pflugtopia-text);
    margin: 0;
    line-height: 1.5;
}

/* Form */
.pflugtopia-newsletter-form {
    width: 100%;
}

/* Form Rows */
.pflugtopia-form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.pflugtopia-form-row input {
    flex: 1;
}

@media (max-width: 500px) {
    .pflugtopia-form-row {
        flex-direction: column;
        gap: 16px;
    }
}

/* Inputs */
.pflugtopia-newsletter-form input[type="text"],
.pflugtopia-newsletter-form input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    color: var(--pflugtopia-text-dark);
    background: #fff;
    border: 1px solid var(--pflugtopia-border);
    border-radius: 6px;
    transition: border-color 0.2s;
    box-sizing: border-box;
    margin-bottom: 16px;
}

.pflugtopia-newsletter-form input::placeholder {
    color: #999;
}

.pflugtopia-newsletter-form input:focus {
    outline: none;
    border-color: #CCB8BE;
}

.pflugtopia-newsletter-form input.error {
    border-color: #c0392b;
}

.pflugtopia-newsletter-form input.valid {
    border-color: #22c55e;
}

/* Footer - checkbox and button */
.pflugtopia-form-footer {
    display: block;
}

/* Checkbox */
.pflugtopia-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--pflugtopia-text);
    margin-bottom: 16px;
}

.pflugtopia-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.pflugtopia-checkmark {
    width: 16px;
    height: 16px;
    background: #fff;
    border: 1px solid var(--pflugtopia-border);
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.pflugtopia-checkbox-label input:checked + .pflugtopia-checkmark {
    background: #CCB8BE;
    border-color: #CCB8BE;
}

.pflugtopia-checkmark::after {
    content: '';
    width: 4px;
    height: 7px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
}

.pflugtopia-checkbox-label input:checked + .pflugtopia-checkmark::after {
    opacity: 1;
}

.pflugtopia-checkbox-label.error .pflugtopia-checkmark {
    border-color: #c0392b;
}

.pflugtopia-checkbox-text a {
    color: var(--pflugtopia-nl-accent);
    text-decoration: none;
}

.pflugtopia-checkbox-text a:hover {
    text-decoration: underline;
}

/* Submit Button - Newsletter form only */
.pflugtopia-newsletter-form .pflugtopia-submit-btn,
.pflugtopia-newsletter-form button.pflugtopia-submit-btn {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #CCB8BE;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    box-sizing: border-box;
    text-align: center;
}

.pflugtopia-newsletter-form .pflugtopia-submit-btn:hover {
    background: #b8a3a9;
    transform: translateY(-1px);
}

.pflugtopia-newsletter-form .pflugtopia-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.pflugtopia-spinner {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
    animation: pflugtopia-spin 1s linear infinite;
}

.pflugtopia-btn-loading {
    display: inline-block;
    vertical-align: middle;
}

@keyframes pflugtopia-spin {
    to { transform: rotate(360deg); }
}

/* Messages */
.pflugtopia-form-messages {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.pflugtopia-message-success {
    background: #f0fdf4;
    color: #166534;
}

.pflugtopia-message-error {
    background: #fef2f2;
    color: #991b1b;
}

.pflugtopia-message-info {
    background: #eff6ff;
    color: #1e40af;
}

/* =====================================================
   CONFIRMATION PAGE - Hero Section Design
   ===================================================== */

.pflugtopia-confirmation-wrapper {
    width: 100%;
}

/* Hero Section */
.pflugtopia-confirmation-hero {
    background: var(--pflugtopia-nl-accent) !important;
    padding: 60px 20px;
    position: relative;
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: 0 !important;
    box-sizing: border-box;
    border-bottom-right-radius: 80px;
    text-align: center;
}

.pflugtopia-confirmation-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    text-align: left;
}

/* Back Link */
.pflugtopia-confirmation-wrapper .pflugtopia-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--pflugtopia-font-body, 'Source Sans Pro', sans-serif);
    font-size: 14px;
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 40px;
}

.pflugtopia-back-link:hover {
    gap: 10px;
    opacity: 0.9;
}

.pflugtopia-back-link svg {
    stroke: white;
}

/* Hero Content */
.pflugtopia-confirmation-hero-content {
    text-align: center;
}

.pflugtopia-confirmation-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pflugtopia-confirmation-icon svg {
    width: 40px;
    height: 40px;
    stroke: white;
    stroke-width: 2;
    fill: none;
}

.pflugtopia-confirmation-title {
    font-family: var(--pflugtopia-font-heading, 'Rufina', Georgia, serif);
    font-size: 42px;
    font-weight: 400;
    color: #ffffff !important;
    margin: 0 0 8px;
    line-height: 1.2;
}

.pflugtopia-confirmation-subtitle {
    font-family: var(--pflugtopia-font-body, 'Source Sans Pro', sans-serif);
    font-size: 18px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.95) !important;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .pflugtopia-confirmation-hero {
        padding: 40px 20px;
        border-bottom-right-radius: 50px;
    }

    .pflugtopia-confirmation-title {
        font-size: 32px;
    }

    .pflugtopia-confirmation-subtitle {
        font-size: 16px;
    }

    .pflugtopia-confirmation-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .pflugtopia-confirmation-icon svg {
        width: 30px;
        height: 30px;
    }
}

/* Content Section */
.pflugtopia-confirmation-content {
    padding: 60px 20px;
    background: #fafafa;
}

.pflugtopia-confirmation-inner {
    max-width: 900px;
    margin: 0 auto;
}

/* Summary Box */
.pflugtopia-summary-box {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pflugtopia-summary-box h2 {
    font-family: var(--pflugtopia-font-heading, 'Rufina', Georgia, serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--pflugtopia-text-dark);
    margin: 0 0 20px;
}

.pflugtopia-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.pflugtopia-summary-item:last-child {
    border-bottom: none;
}

.pflugtopia-summary-label {
    font-weight: 600;
    color: var(--pflugtopia-text);
    font-size: 14px;
}

.pflugtopia-summary-value {
    color: var(--pflugtopia-text-dark);
    font-size: 14px;
}

.pflugtopia-status-active {
    color: #22c55e !important;
    font-weight: 600;
}

/* Next Steps */
.pflugtopia-next-steps {
    background: rgba(122, 159, 138, 0.08);
    border-radius: 12px;
    padding: 40px 32px;
    margin-bottom: 40px;
}

.pflugtopia-next-steps h2 {
    font-family: var(--pflugtopia-font-heading, 'Rufina', Georgia, serif);
    font-size: 26px;
    font-weight: 400;
    color: var(--pflugtopia-text-dark);
    margin: 0 0 32px;
    text-align: center;
}

.pflugtopia-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.pflugtopia-step {
    text-align: center;
}

.pflugtopia-step-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--pflugtopia-nl-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pflugtopia-step-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
    fill: none;
}

.pflugtopia-step h3 {
    font-family: var(--pflugtopia-font-body, 'Source Sans Pro', sans-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--pflugtopia-text-dark);
    margin: 0 0 8px;
}

.pflugtopia-step p {
    font-size: 14px;
    color: var(--pflugtopia-text);
    margin: 0;
    line-height: 1.6;
}

/* Action Buttons */
.pflugtopia-confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.pflugtopia-btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.pflugtopia-btn-primary {
    background: var(--pflugtopia-nl-accent);
    color: #fff !important;
}

.pflugtopia-btn-primary:hover {
    background: #6b8f7a;
    transform: translateY(-1px);
}

.pflugtopia-btn-secondary {
    background: #fff;
    color: var(--pflugtopia-text-dark) !important;
    border: 1px solid var(--pflugtopia-border);
}

.pflugtopia-btn-secondary:hover {
    border-color: var(--pflugtopia-nl-accent);
    color: var(--pflugtopia-nl-accent) !important;
}

@media (max-width: 768px) {
    .pflugtopia-confirmation-content {
        padding: 40px 20px;
    }

    .pflugtopia-summary-box,
    .pflugtopia-next-steps {
        padding: 24px;
    }

    .pflugtopia-steps-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pflugtopia-confirmation-actions {
        flex-direction: column;
        gap: 12px;
    }

    .pflugtopia-btn {
        width: 100%;
        text-align: center;
    }
}

/* =====================================================
   GREEN STYLE VARIANT
   ===================================================== */

.pflugtopia-newsletter-green .pflugtopia-submit-btn,
.pflugtopia-newsletter-green button.pflugtopia-submit-btn {
    background: #aed2c1 !important;
    color: #333 !important;
}

.pflugtopia-newsletter-green .pflugtopia-submit-btn:hover {
    background: #9bc4b1 !important;
}

.pflugtopia-newsletter-green .pflugtopia-checkbox-label input:checked + .pflugtopia-checkmark {
    background: #aed2c1;
    border-color: #aed2c1;
}

.pflugtopia-newsletter-green .pflugtopia-newsletter-form input:focus {
    border-color: #aed2c1;
}

.pflugtopia-newsletter-green .pflugtopia-checkbox-text a {
    color: #7a9f8a;
}

/* =====================================================
   INLINE SUCCESS STATE
   ===================================================== */

.pflugtopia-newsletter-success {
    text-align: center;
    padding: 32px 20px;
}

.pflugtopia-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: rgba(122, 159, 138, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pflugtopia-success-icon svg {
    width: 32px;
    height: 32px;
    stroke: #7a9f8a;
    stroke-width: 2;
    fill: none;
}

.pflugtopia-success-title {
    font-family: var(--pflugtopia-font-heading, 'Rufina', Georgia, serif);
    font-size: 24px;
    font-weight: 400;
    color: var(--pflugtopia-text-dark);
    margin: 0 0 12px;
    line-height: 1.3;
}

.pflugtopia-success-text {
    font-family: var(--pflugtopia-font-body, 'Source Sans Pro', sans-serif);
    font-size: 15px;
    color: var(--pflugtopia-text);
    margin: 0 0 16px;
    line-height: 1.6;
}

.pflugtopia-success-hint {
    font-family: var(--pflugtopia-font-body, 'Source Sans Pro', sans-serif);
    font-size: 13px;
    font-style: italic;
    color: #999;
    margin: 0;
    line-height: 1.5;
}
