/**
 * THOROLD Membership Public Styles
 *
 * @package THOROLD_Membership
 */

/* Form Wrapper */
.thorold-membership-form-wrapper,
.thorold-newsletter-form-wrapper,
.thorold-member-dashboard,
.thorold-login-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.thorold-member-dashboard {
    max-width: 800px;
}

/* Enhanced signup form styling */
.thorold-membership-form-wrapper {
    max-width: 760px;
    padding: 28px;
    border: 1px solid #dbe5ef;
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}

.thorold-form-title {
    margin: 0 0 14px;
    font-size: 30px;
    line-height: 1.2;
    color: #0f2d4a;
    letter-spacing: -0.2px;
}

.thorold-form-section-title {
    margin: 26px 0 12px;
    padding-top: 8px;
    font-size: 20px;
    line-height: 1.3;
    color: #123e66;
    border-top: 1px solid #e6edf5;
}

.thorold-renewal-info {
    background: #edf5ff;
    border: 1px solid #d4e6fb;
    border-left: 4px solid #2271b1;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.thorold-renewal-info h3 {
    margin: 0 0 8px;
    color: #123e66;
}

.thorold-renewal-info p {
    margin: 0 0 8px;
}

.thorold-login-page--logged-in p {
    margin: 0 0 12px 0;
}

/* Form Elements */
.thorold-form {
    margin-top: 20px;
}

.thorold-form-row {
    margin-bottom: 20px;
}

.thorold-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e293b;
}

.thorold-form-row input[type="text"],
.thorold-form-row input[type="email"],
.thorold-form-row input[type="tel"],
.thorold-form-row input[type="password"],
.thorold-form-row select,
.thorold-form-row textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    background: #fff;
}

.thorold-form-row input[type="text"]:focus,
.thorold-form-row input[type="email"]:focus,
.thorold-form-row input[type="tel"]:focus,
.thorold-form-row input[type="password"]:focus,
.thorold-form-row select:focus,
.thorold-form-row textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
    background: #fff;
}

.thorold-form-row-half {
    display: flex;
    gap: 15px;
}

.thorold-form-row-half > div {
    flex: 1;
}

/* Checkboxes */
.thorold-checkbox-row label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.thorold-checkbox-row input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    cursor: pointer;
}

.thorold-agreement-text {
    margin-top: 10px;
    padding: 15px;
    background: #f8fbff;
    border: 1px solid #d7e5f4;
    border-left: 3px solid #2271b1;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
}

/* Payment Options */
.thorold-payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thorold-payment-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #d0dbe7;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.18s ease;
    background: #fff;
}

.thorold-payment-option:hover {
    border-color: #2271b1;
    background: #f6fbff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(2, 56, 95, 0.08);
}

.thorold-payment-option input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
}

.thorold-payment-option input[type="radio"]:checked + span {
    font-weight: 600;
    color: #0f4b79;
}

/* Pricing Display */
.thorold-pricing-display {
    background: linear-gradient(180deg, #f3f9ff 0%, #eef6ff 100%);
    border: 1px solid #b8d5f0;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    margin: 20px 0;
}

.thorold-price-label {
    font-size: 18px;
    margin: 0;
}

#membership-price {
    color: #0c4a78;
    font-size: 26px;
}

/* Buttons */
.thorold-button-primary,
.thorold-button-secondary {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
}

.thorold-button-primary {
    background: linear-gradient(180deg, #1f79bc 0%, #125f99 100%);
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(17, 94, 153, 0.22);
}

.thorold-button-primary:hover {
    background: linear-gradient(180deg, #176ca8 0%, #0e527f 100%);
    transform: translateY(-1px);
}

.thorold-button-secondary {
    background: #fff;
    color: #125f99;
    border: 1px solid #9ec2e2;
    border-radius: 10px;
}

.thorold-button-secondary:hover {
    background: #125f99;
    color: #fff;
}

.thorold-form-submit-row {
    margin-top: 28px;
    text-align: center;
}

.thorold-form-submit-row .thorold-button-primary {
    min-width: 240px;
}

.thorold-stripe-card-row #thorold-stripe-card-element {
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
}

.thorold-help-text-error {
    color: #dc3232;
}

.thorold-button-primary:disabled,
.thorold-button-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Messages */
.thorold-message {
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}

.thorold-message.thorold-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.thorold-message.thorold-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Help Text */
.thorold-help-text {
    font-size: 13px;
    color: #666;
    margin: 5px 0 0 0;
}

/* Family Members Section */
#family-members-list {
    margin-bottom: 15px;
}

.family-member-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
    background: #f8fbff;
    border: 1px solid #d7e5f4;
    border-radius: 10px;
    padding: 10px;
}

.family-member-item input {
    flex: 1;
}

.family-member-item button {
    padding: 9px 14px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.family-member-item button:hover {
    background: #c82333;
}

/* Member Dashboard */
.thorold-dashboard-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.thorold-dashboard-section:last-child {
    border-bottom: none;
}

.thorold-dashboard-section h3 {
    margin-top: 0;
    color: #0073aa;
}

.thorold-tabs {
    margin-top: 10px;
}

.thorold-tabs-nav {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    padding: 6px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.thorold-tab {
    appearance: none;
    border: 1px solid transparent;
    background: transparent;
    color: #374151;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.thorold-tab:hover {
    background: #ffffff;
    border-color: #d1d5db;
    color: #111827;
}

.thorold-tab.is-active {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

.thorold-tab:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.18);
}

.thorold-tabs-panels {
    margin-top: 14px;
}

.thorold-tab-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
}

.thorold-security-card {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 18px;
}

.thorold-password-field {
    position: relative;
}

.thorold-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
    cursor: pointer;
}

.thorold-password-toggle:hover {
    border-color: #0073aa;
    color: #0073aa;
}

.thorold-password-requirements {
    margin: 10px 0 0 0;
    padding: 12px 12px 12px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    color: #374151;
}

.thorold-password-requirements ul {
    margin: 8px 0 0 0;
    padding-left: 18px;
}

.thorold-password-requirements li {
    margin: 6px 0;
}

.thorold-password-requirements li.is-met {
    color: #155724;
}

.thorold-strength-meter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.thorold-strength-meter-bar {
    flex: 1;
    height: 10px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.thorold-strength-meter-bar > span {
    display: block;
    height: 100%;
    width: 0%;
    background: #dc3545;
    transition: width 0.2s ease, background 0.2s ease;
}

.thorold-strength-meter-label {
    min-width: 90px;
    font-size: 13px;
    color: #374151;
    font-weight: 600;
    text-align: right;
}

.thorold-membership-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
}

.thorold-info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.thorold-info-item:last-child {
    border-bottom: none;
}

.thorold-info-label {
    font-weight: 600;
}

.thorold-info-value {
    color: #666;
}

.thorold-status-active {
    color: #28a745;
    font-weight: 600;
}

.thorold-status-pending {
    color: #ffc107;
    font-weight: 600;
}

.thorold-status-expired {
    color: #dc3545;
    font-weight: 600;
}

/* Cards List */
.thorold-cards-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.thorold-card-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.thorold-card-icon {
    font-size: 32px;
}

.thorold-card-info {
    flex: 1;
}

.thorold-card-info strong {
    display: block;
    margin-bottom: 5px;
}

.thorold-card-number {
    font-size: 12px;
    color: #666;
}

/* Responsive */
@media (max-width: 600px) {
    .thorold-membership-form-wrapper,
    .thorold-newsletter-form-wrapper,
    .thorold-member-dashboard {
        padding: 15px;
    }

    .thorold-membership-form-wrapper {
        border-radius: 12px;
    }

    .thorold-form-title {
        font-size: 24px;
    }
    
    .thorold-form-row-half {
        flex-direction: column;
    }
    
    .thorold-button-primary,
    .thorold-button-secondary {
        width: 100%;
    }
    
    .thorold-card-item {
        flex-direction: column;
        text-align: center;
    }
}




