/* Subscription Form Styles */

.subscribe-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f5e9 100%);
    min-height: 100vh;
    padding: 40px 20px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.subscribe-container {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 40px;
    box-sizing: border-box;
}

.subscribe-header {
    text-align: center;
    margin-bottom: 30px;
}

.subscribe-header h1 {
    color: #2c5f2d;
    font-size: 2em;
    margin-bottom: 10px;
}

.subscribe-header .subtitle {
    color: #666;
    font-size: 1.1em;
}

/* Pricing Info */
.pricing-info {
    background: linear-gradient(135deg, #2c5f2d 0%, #4a7c4e 100%);
    color: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.price-display {
    margin-bottom: 20px;
}

.price {
    font-size: 3em;
    font-weight: bold;
}

.period {
    font-size: 1.2em;
    opacity: 0.9;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    text-align: left;
    max-width: 400px;
    margin: 20px auto 0;
}

.features-list li {
    padding: 8px 0;
    font-size: 1em;
    opacity: 0.95;
}

/* Form Sections */
.subscription-form {
    margin-top: 30px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h2 {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 0.95em;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #2c5f2d;
    box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.1);
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: #df1b41;
}

.field-hint {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 0.85em;
    font-weight: normal;
}

/* Stripe Payment Element */
.payment-element {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

#payment-element {
    min-height: 100px;
}

.payment-message {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95em;
    background-color: #df1b41;
    color: white;
    text-align: center;
}

.payment-message.hidden {
    display: none;
}

/* Terms Checkbox */
.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.terms-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.terms-checkbox label {
    font-size: 0.9em;
    color: #666;
    line-height: 1.5;
}

.terms-checkbox a {
    color: #2c5f2d;
    text-decoration: underline;
}

/* Submit Button */
.submit-button {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #2c5f2d 0%, #4a7c4e 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-top: 20px;
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(44, 95, 45, 0.3);
}

.submit-button:active:not(:disabled) {
    transform: translateY(0);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner.hidden {
    display: none;
}

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

#button-text.hidden {
    display: none;
}

/* Secure Notice */
.secure-notice {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 0.9em;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .subscribe-container {
        padding: 30px 20px;
    }

    .subscribe-header h1 {
        font-size: 1.6em;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .price {
        font-size: 2.5em;
    }

    .features-list {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .subscribe-page {
        padding: 20px 10px;
    }

    .subscribe-container {
        padding: 20px 15px;
    }

    .pricing-info {
        padding: 20px;
    }

    .submit-button {
        font-size: 1em;
        padding: 14px 24px;
    }
}
