/**
 * TDF Stripe Signup Form Styles
 *
 * @package TDF_Stripe_Subscriptions
 * @since 1.0.0
 */

/* Container */
.tdf-signup-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

/* Header */
.tdf-signup-header {
    text-align: center;
    margin-bottom: 40px;
}

.tdf-signup-header h1 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.tdf-signup-header p {
    font-size: 18px;
    color: #7f8c8d;
}

/* Tier Selection */
.tdf-tier-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.tdf-tier-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.tdf-tier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.tdf-tier-recommended {
    border-color: #2ecc71;
    box-shadow: 0 5px 20px rgba(46, 204, 113, 0.2);
}

.tdf-tier-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #2ecc71;
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.tdf-tier-header h2 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.tdf-tier-price {
    font-size: 48px;
    font-weight: bold;
    color: #2ecc71;
    margin-bottom: 20px;
}

.tdf-tier-price span {
    font-size: 18px;
    color: #7f8c8d;
    font-weight: normal;
}

.tdf-tier-features ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.tdf-tier-features li {
    padding: 10px 0;
    font-size: 16px;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.tdf-tier-features li:last-child {
    border-bottom: none;
}

.tdf-tier-select-btn {
    width: 100%;
    padding: 15px 30px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.tdf-tier-card.tdf-tier-recommended .tdf-tier-select-btn {
    background: #2ecc71;
}

.tdf-tier-select-btn:hover {
    background: #2980b9;
}

.tdf-tier-card.tdf-tier-recommended .tdf-tier-select-btn:hover {
    background: #27ae60;
}

/* Form Wrapper */
.tdf-signup-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Form Header */
.tdf-form-header {
    margin-bottom: 30px;
}

.tdf-back-btn {
    background: none;
    border: none;
    color: #3498db;
    font-size: 14px;
    cursor: pointer;
    padding: 5px 0;
    margin-bottom: 15px;
}

.tdf-back-btn:hover {
    text-decoration: underline;
}

.tdf-form-header h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.tdf-form-header p {
    color: #7f8c8d;
    font-size: 16px;
}

/* Form Styles */
.tdf-signup-form {
    margin-bottom: 20px;
}

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

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

.tdf-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
}

.tdf-form-group .required {
    color: #e74c3c;
}

.tdf-form-group input[type="text"],
.tdf-form-group input[type="email"],
.tdf-form-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.tdf-form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.tdf-form-group small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 13px;
}

/* Payment Section */
#tdf-payment-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

#tdf-payment-section h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.tdf-stripe-element {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    transition: border-color 0.3s ease;
}

.tdf-stripe-element:focus-within {
    border-color: #3498db;
}

.tdf-payment-notice {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.tdf-payment-notice p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

/* Error Messages */
.tdf-error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 8px;
}

/* Form Actions */
.tdf-form-actions {
    margin-top: 30px;
}

.tdf-submit-btn {
    width: 100%;
    padding: 15px 30px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.tdf-submit-btn:hover {
    background: #27ae60;
}

.tdf-submit-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.tdf-btn-spinner {
    display: inline-block;
}

/* Messages */
.tdf-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin-top: 20px;
}

.tdf-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tdf-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Form Footer */
.tdf-form-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.tdf-form-footer p {
    color: #7f8c8d;
    font-size: 14px;
    margin: 0;
}

.tdf-form-footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.tdf-form-footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tdf-tier-selection {
        grid-template-columns: 1fr;
    }

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

    .tdf-signup-form-wrapper {
        padding: 20px;
    }

    .tdf-signup-header h1 {
        font-size: 28px;
    }

    .tdf-tier-price {
        font-size: 36px;
    }
}
