/* ============================================
   PASCO MEMBERSHIP - COMPLETE STYLES v3
   ============================================ */

/* --- FORM WRAPPER --- */
.pasco-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #2c3e50;
    padding: 20px 0;
}

.pasco-step {
    display: none;
}

.pasco-step-active {
    display: block;
}

/* --- HEADER --- */
.pasco-form-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e8f4f8;
}

.pasco-form-header h2 {
    color: #1a5276;
    font-size: 32px;
    margin: 0 0 12px;
    font-weight: 700;
}

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

/* --- PRICING BANNER --- */
.pasco-pricing-banner {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.pasco-price-tag {
    background: linear-gradient(135deg, #1a5276 0%, #2980b9 100%);
    color: white;
    padding: 22px 28px;
    border-radius: 12px;
    text-align: center;
    min-width: 130px;
    box-shadow: 0 4px 15px rgba(26, 82, 118, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex: 1;
    max-width: 180px;
}

.pasco-price-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 82, 118, 0.3);
}

.pasco-price-amount {
    display: block;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1;
}

.pasco-price-label {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.9;
}

/* --- MEMBER CARDS --- */
.pasco-member-card {
    background: #ffffff;
    border: 2px solid #e8f4f8;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 22px;
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pasco-member-card:hover {
    border-color: #85c1e9;
    box-shadow: 0 4px 20px rgba(133, 193, 233, 0.15);
}

.pasco-member-card.pasco-additional {
    border-color: #fef9e7;
    background: #fffef7;
}

.pasco-member-card.pasco-additional:hover {
    border-color: #f4d03f;
    box-shadow: 0 4px 20px rgba(244, 208, 63, 0.15);
}

.pasco-member-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ecf0f1;
}

.pasco-member-header h3 {
    margin: 0;
    color: #1a5276;
    font-size: 20px;
    font-weight: 600;
}

.pasco-member-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #1a5276;
    color: white;
    border-radius: 50%;
    font-size: 15px;
    margin-right: 10px;
    font-weight: 600;
}

.pasco-additional .pasco-member-number {
    background: #f39c12;
}

.pasco-remove-member {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-weight: 500;
}

.pasco-remove-member:hover {
    background: #c0392b;
}

/* --- FORM FIELDS --- */
.pasco-field-row {
    display: flex;
    gap: 18px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pasco-field {
    flex: 1;
    min-width: 220px;
}

.pasco-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #5d6d7e;
    margin-bottom: 8px;
}

.pasco-field label .required {
    color: #e74c3c;
}

.pasco-input {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid #d5dbdb;
    border-radius: 8px;
    font-size: 15px;
    color: #2c3e50;
    background: #fdfefe;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.pasco-input:focus {
    outline: none;
    border-color: #85c1e9;
    box-shadow: 0 0 0 3px rgba(133, 193, 233, 0.2);
}

.pasco-input::placeholder {
    color: #bdc3c7;
}

/* Date of Birth fields */
.pasco-dob-fields {
    display: flex;
    gap: 10px;
}

.pasco-dob-fields .pasco-input {
    flex: 1;
    padding: 13px 10px;
}

.pasco-dob-day,
.pasco-dob-month,
.pasco-dob-year {
    min-width: 90px;
}

/* Category badge */
.pasco-category-field {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.pasco-category-badge {
    padding: 14px 18px;
    border-radius: 8px;
    background: #f8f9f9;
    border: 1.5px dashed #d5dbdb;
    text-align: center;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.pasco-category-badge.pasco-cat-child {
    background: #eafaf1;
    border-color: #27ae60;
    border-style: solid;
}

.pasco-category-badge.pasco-cat-adult {
    background: #ebf5fb;
    border-color: #2980b9;
    border-style: solid;
}

.pasco-category-badge.pasco-cat-senior {
    background: #f5eef8;
    border-color: #8e44ad;
    border-style: solid;
}

.pasco-category-text {
    font-size: 15px;
    font-weight: 600;
    color: #7f8c8d;
}

.pasco-cat-child .pasco-category-text {
    color: #27ae60;
}

.pasco-cat-adult .pasco-category-text {
    color: #2980b9;
}

.pasco-cat-senior .pasco-category-text {
    color: #8e44ad;
}

.pasco-category-price {
    display: block;
    font-size: 13px;
    color: #95a5a6;
    margin-top: 4px;
    font-weight: 500;
}

/* --- BUTTONS --- */
.pasco-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pasco-btn-primary {
    background: linear-gradient(135deg, #1a5276 0%, #2980b9 100%);
    color: white;
    width: 100%;
    padding: 16px;
    font-size: 17px;
}

.pasco-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #154360 0%, #2471a3 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(26, 82, 118, 0.3);
}

.pasco-btn-primary:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    opacity: 0.7;
}

.pasco-btn-secondary {
    background: #f39c12;
    color: white;
    margin: 12px 0 28px;
    padding: 12px 24px;
}

.pasco-btn-secondary:hover {
    background: #e67e22;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.pasco-btn-icon {
    font-size: 20px;
    font-weight: 700;
}

/* --- ORDER SUMMARY --- */
.pasco-order-summary {
    background: #f8f9fa;
    border: 2px solid #e8f4f8;
    border-radius: 12px;
    padding: 28px;
    margin: 28px 0;
}

.pasco-order-summary h4 {
    margin: 0 0 18px;
    color: #1a5276;
    font-size: 18px;
    font-weight: 700;
}

#pasco-summary-items {
    margin-bottom: 18px;
}

.pasco-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e8f4f8;
}

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

.pasco-summary-name {
    font-weight: 500;
    color: #2c3e50;
    font-size: 15px;
}

.pasco-summary-category {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 10px;
    letter-spacing: 0.3px;
}

.pasco-summary-category.child {
    background: #d5f5e3;
    color: #27ae60;
}

.pasco-summary-category.adult {
    background: #d6eaf8;
    color: #2980b9;
}

.pasco-summary-category.senior {
    background: #e8daef;
    color: #8e44ad;
}

.pasco-summary-price {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.pasco-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    border-top: 2px solid #1a5276;
    font-size: 20px;
    font-weight: 700;
    color: #1a5276;
}

/* --- NOTICES --- */
.pasco-notice {
    padding: 18px 22px;
    border-radius: 8px;
    margin-bottom: 22px;
}

.pasco-notice-info {
    background: #d6eaf8;
    border-left: 4px solid #2980b9;
    color: #1a5276;
}

.pasco-notice-info a {
    color: #1a5276;
    font-weight: 600;
}

/* --- FORM ACTIONS --- */
.pasco-form-actions {
    margin-top: 12px;
}

/* ============================================
   MY ACCOUNT STYLES
   ============================================ */

.pasco-dashboard-widget {
    background: linear-gradient(135deg, #1a5276 0%, #2980b9 100%);
    color: white;
    padding: 28px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.pasco-dashboard-widget h3 {
    margin: 0 0 22px;
    font-size: 22px;
    font-weight: 600;
}

.pasco-widget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 22px;
}

.pasco-widget-card {
    background: rgba(255,255,255,0.15);
    padding: 18px;
    border-radius: 8px;
    text-align: center;
}

.pasco-widget-label {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pasco-widget-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
}

.pasco-widget-value .pasco-id-code {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 5px 12px;
    font-size: 15px;
}

.pasco-days-left {
    display: block;
    font-size: 13px;
    color: #f39c12;
    margin-top: 4px;
    font-weight: 600;
}

.pasco-widget-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pasco-widget-actions .button {
    background: white;
    color: #1a5276;
    border: none;
    padding: 12px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.pasco-widget-actions .button-primary {
    background: #f39c12;
    color: white;
}

/* Account cards */
.pasco-account-card {
    background: white;
    border: 1px solid #e8f4f8;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 25px;
}

.pasco-account-card h3 {
    margin: 0 0 22px;
    color: #1a5276;
    font-size: 20px;
}

.pasco-primary-card {
    border-left: 4px solid #1a5276;
}

.pasco-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ecf0f1;
}

.pasco-card-header h3 {
    margin: 0;
}

.pasco-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f8f9fa;
}

.pasco-detail-row:last-child {
    border-bottom: none;
}

.pasco-detail-label {
    font-weight: 600;
    color: #5d6d7e;
    font-size: 15px;
}

.pasco-detail-value {
    color: #2c3e50;
    font-size: 15px;
}

/* Status badges */
.pasco-status-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pasco-status-active {
    background: #d5f5e3;
    color: #27ae60;
}

.pasco-status-pending {
    background: #fef9e7;
    color: #f39c12;
}

.pasco-status-expired {
    background: #fadbd8;
    color: #e74c3c;
}

.pasco-status-grace {
    background: #f5eef8;
    color: #8e44ad;
}

/* Timeline */
.pasco-timeline {
    position: relative;
    padding-left: 32px;
}

.pasco-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e8f4f8;
}

.pasco-timeline-item {
    position: relative;
    padding-bottom: 28px;
}

.pasco-timeline-dot {
    position: absolute;
    left: -28px;
    top: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #bdc3c7;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #bdc3c7;
}

.pasco-timeline-past .pasco-timeline-dot {
    background: #27ae60;
    box-shadow: 0 0 0 2px #27ae60;
}

.pasco-timeline-current .pasco-timeline-dot {
    background: #f39c12;
    box-shadow: 0 0 0 2px #f39c12;
}

.pasco-timeline-warning .pasco-timeline-dot {
    background: #e74c3c;
    box-shadow: 0 0 0 2px #e74c3c;
}

.pasco-timeline-date {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.pasco-timeline-label {
    display: block;
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 4px;
}

.pasco-timeline-label small {
    color: #e74c3c;
    font-weight: 600;
}

/* Renewal box */
.pasco-renewal-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 12px;
    padding: 28px;
    margin-top: 25px;
}

.pasco-renewal-box h3 {
    color: #856404;
    margin: 0 0 12px;
    font-size: 20px;
}

.pasco-renewal-box p {
    color: #856404;
    margin: 0 0 18px;
    font-size: 15px;
}

/* Family members */
.pasco-members-intro {
    color: #7f8c8d;
    margin-bottom: 22px;
    font-size: 15px;
}

.pasco-family-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.pasco-family-card {
    background: white;
    border: 2px solid #e8f4f8;
    border-radius: 12px;
    padding: 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pasco-family-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.pasco-family-primary {
    border-color: #1a5276;
    background: linear-gradient(135deg, #ebf5fb 0%, #ffffff 100%);
}

.pasco-family-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #ecf0f1;
}

.pasco-family-header h4 {
    margin: 0;
    color: #1a5276;
    font-size: 18px;
}

.pasco-family-badge {
    background: #1a5276;
    color: white;
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.pasco-family-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
}

.pasco-family-detail:last-child {
    border-bottom: none;
}

.pasco-family-label {
    font-size: 13px;
    color: #7f8c8d;
    font-weight: 500;
}

/* PASCO ID code styling */
.pasco-id-code {
    background: #e8f4f8;
    color: #1a5276;
    padding: 5px 12px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    font-weight: 600;
}

/* Category badges */
.pasco-cat-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pasco-cat-child {
    background: #d5f5e3;
    color: #27ae60;
}

.pasco-cat-adult {
    background: #d6eaf8;
    color: #2980b9;
}

.pasco-cat-senior {
    background: #e8daef;
    color: #8e44ad;
}


/* ============================================
   FREE MIGRATION BANNER
   ============================================ */

.pasco-free-banner {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 12px rgba(40, 167, 69, 0.15);
}

.pasco-free-banner-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.pasco-free-banner-text {
    color: #155724;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

.pasco-free-banner-text strong {
    color: #0b2e13;
    font-weight: 700;
}

/* Free mode button override */
.pasco-form-wrapper.pasco-free-mode .pasco-btn-primary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-color: #28a745;
}

.pasco-form-wrapper.pasco-free-mode .pasco-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #218838 0%, #1ba87e 100%);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* ============================================
   PHONE FIELD WITH COUNTRY FLAG
   ============================================ */

.pasco-phone-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    background: #fdfefe;
    border: 1.5px solid #d5dbdb;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pasco-phone-wrapper:focus-within {
    border-color: #85c1e9;
    box-shadow: 0 0 0 3px rgba(133, 193, 233, 0.2);
}

.pasco-phone-flag {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
    padding-left: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.pasco-phone-flag.visible {
    opacity: 1;
}

.pasco-phone-wrapper .pasco-input.pasco-phone {
    flex: 1;
    border: none;
    background: transparent;
    box-shadow: none;
    padding-left: 6px;
}

.pasco-phone-wrapper .pasco-input.pasco-phone:focus {
    box-shadow: none;
    outline: none;
}

.pasco-phone-hint {
    font-size: 12px;
    color: #95a5a6;
    margin-top: 6px;
    display: block;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 600px) {
    .pasco-pricing-banner {
        flex-direction: column;
        align-items: center;
    }

    .pasco-price-tag {
        width: 100%;
        max-width: 250px;
    }

    .pasco-field-row {
        flex-direction: column;
        gap: 12px;
    }

    .pasco-field {
        min-width: 100%;
    }

    .pasco-dob-fields {
        flex-direction: column;
    }

    .pasco-member-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .pasco-widget-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pasco-detail-row {
        flex-direction: column;
        gap: 6px;
    }

    .pasco-family-grid {
        grid-template-columns: 1fr;
    }

    .pasco-order-summary {
        padding: 20px;
    }

    .pasco-summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    /* FIX: Price on new line on mobile */
    .pasco-summary-total {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        white-space: normal;
    }

    .pasco-summary-total #pasco-total-price {
        align-self: flex-end;
        font-size: 24px;
    }

    /* FIX: Phone field with flag on mobile */
    .pasco-phone-wrapper {
        flex-direction: row;
        align-items: center;
    }

    .pasco-phone-flag {
        font-size: 18px;
        width: 36px;
        padding-left: 8px;
    }
}
