/**
 * ITS26 Membership Form Styles
 */

.its26-membership-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.its26-membership-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.its26-form-section {
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
}

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

.its26-form-section h3 {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
    color: #1a365d;
}

.its26-form-row {
    margin-bottom: 20px;
}

.its26-form-row:last-child {
    margin-bottom: 0;
}

.its26-form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.its26-form-row label .required {
    color: #dc3545;
}

.its26-form-row label .optional {
    color: #999;
    font-weight: 400;
    font-size: 13px;
}

.its26-form-row input[type="text"],
.its26-form-row input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.its26-form-row input:focus {
    outline: none;
    border-color: #1a365d;
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

/* Membership Options */
.its26-membership-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.its26-membership-option {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.its26-membership-option:hover {
    border-color: #1a365d;
    background: #f8fafc;
}

.its26-membership-option input[type="radio"] {
    margin: 3px 12px 0 0;
    accent-color: #1a365d;
}

.its26-membership-option.selected {
    border-color: #1a365d;
    background: #e8f4f8;
}

.its26-option-content {
    flex: 1;
}

.its26-option-name {
    display: block;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 2px;
}

.its26-option-price {
    display: inline-block;
    background: #1a365d;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.its26-membership-option[data-price="0"] .its26-option-price {
    background: #28a745;
}

.its26-option-desc {
    display: block;
    font-size: 13px;
    color: #666;
}

/* Payment Section */
.its26-payment-section {
    background: #f8fafc;
}

#its26-card-element {
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: white;
}

#its26-card-element.StripeElement--focus {
    border-color: #1a365d;
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

#its26-card-element.StripeElement--invalid {
    border-color: #dc3545;
}

.its26-payment-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    font-size: 18px;
}

.its26-summary-label {
    font-weight: 500;
}

.its26-summary-amount {
    font-weight: 700;
    color: #1a365d;
    font-size: 24px;
}

/* Free Notice */
.its26-free-notice {
    background: #d4edda;
}

.its26-info-message {
    margin: 0;
    padding: 15px;
    background: #e8f5e9;
    border-radius: 6px;
    color: #155724;
}

/* Submit Button */
.its26-form-actions {
    padding: 25px 30px;
    background: #f0f4f8;
}

.its26-submit-button {
    width: 100%;
    padding: 16px 24px;
    background: #1a365d;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.its26-submit-button:hover:not(:disabled) {
    background: #2c5282;
}

.its26-submit-button:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.its26-btn-loading {
    display: inline-flex;
    align-items: center;
}

.its26-btn-loading::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    margin-right: 10px;
    animation: its26-spin 1s linear infinite;
}

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

/* Messages */
#its26-form-messages {
    padding: 0 30px 25px;
}

.its26-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 8px;
}

.its26-success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
}

.its26-error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 480px) {
    .its26-form-section {
        padding: 20px;
    }

    .its26-form-actions {
        padding: 20px;
    }

    .its26-submit-button {
        padding: 14px 20px;
        font-size: 16px;
    }
}
