/**
 * Styles for Family Travel Tracker
 *
 * @package Family_Travel_Tracker
 */

/* ==================== General Styles ==================== */

.ftt-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .ftt-container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .ftt-container {
        padding: 10px;
    }
}

.ftt-back-link {
    margin: 0 0 10px 0;
}

.ftt-back-link a {
    color: #2271b1;
    text-decoration: none;
    font-size: 14px;
}

.ftt-back-link a:hover {
    text-decoration: underline;
}

.ftt-form-header h2 {
    margin-top: 0;
}

/* ==================== Calendar Styles ==================== */

#ftt-calendar {
    margin: 20px 0;
}

.fc .fc-view-harness {
    height: auto !important;
}

.fc .fc-scroller {
    overflow: visible !important;
}

.fc-event {
    cursor: pointer;
}

/* ==================== Child Color Filter ==================== */

.ftt-child-filter {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.ftt-child-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ftt-child-filter h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#ftt-select-all-children {
    font-size: 12px;
    padding: 4px 12px;
    height: auto;
    line-height: 1.4;
}

.ftt-filter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ftt-filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ftt-filter-item:hover {
    background: #f1f3f5;
    border-color: #adb5bd;
}

.ftt-filter-item input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

.ftt-color-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.ftt-child-name {
    font-size: 14px;
    color: #212529;
    font-weight: 500;
}

.ftt-filter-item input[type="checkbox"]:not(:checked) ~ .ftt-child-name {
    color: #adb5bd;
    text-decoration: line-through;
}

/* Child-specific event colors (dynamically applied) */
.fc-event.child-color {
    border-width: 2px;
}

/* Event type colors */
.ftt-event-type-move_in {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.ftt-event-type-move_out {
    background-color: #F44336;
    border-color: #F44336;
}

.ftt-event-type-camp_weekend {
    background-color: #2196F3;
    border-color: #2196F3;
}

.ftt-event-type-rehearsal_block {
    background-color: #9C27B0;
    border-color: #9C27B0;
}

.ftt-event-type-travel_day {
    background-color: #FF9800;
    border-color: #FF9800;
}

.ftt-event-type-performance_day {
    background-color: #E91E63;
    border-color: #E91E63;
}

.ftt-event-type-housing_checkin {
    background-color: #00BCD4;
    border-color: #00BCD4;
}

/* General summer events */
.ftt-event-type-summer_camp {
    background-color: #4DB6AC;
    border-color: #4DB6AC;
}

.ftt-event-type-sports_camp {
    background-color: #66BB6A;
    border-color: #66BB6A;
}

.ftt-event-type-music_camp {
    background-color: #AB47BC;
    border-color: #AB47BC;
}

.ftt-event-type-college_visit {
    background-color: #5C6BC0;
    border-color: #5C6BC0;
}

.ftt-event-type-college_orientation {
    background-color: #42A5F5;
    border-color: #42A5F5;
}

.ftt-event-type-internship {
    background-color: #26A69A;
    border-color: #26A69A;
}

.ftt-event-type-volunteer_work {
    background-color: #66BB6A;
    border-color: #66BB6A;
}

.ftt-event-type-family_vacation {
    background-color: #29B6F6;
    border-color: #29B6F6;
}

.ftt-event-type-family_reunion {
    background-color: #FFA726;
    border-color: #FFA726;
}

.ftt-event-type-birthday {
    background-color: #FF7043;
    border-color: #FF7043;
}

.ftt-event-type-graduation {
    background-color: #7E57C2;
    border-color: #7E57C2;
}

/* Administrative events */
.ftt-event-type-medical {
    background-color: #EF5350;
    border-color: #EF5350;
}

.ftt-event-type-uniform_fitting {
    background-color: #607D8B;
    border-color: #607D8B;
}

.ftt-event-type-admin_deadline {
    background-color: #F44336;
    border-color: #F44336;
}

.ftt-event-type-meeting {
    background-color: #78909C;
    border-color: #78909C;
}

.ftt-event-type-other {
    background-color: #9E9E9E;
    border-color: #9E9E9E;
}

.ftt-event-type-other {
    background-color: #9E9E9E;
    border-color: #9E9E9E;
}

/* ==================== Event Form Styles ==================== */

.ftt-form-section {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ftt-form-section h3 {
    margin-top: 0;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.ftt-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 0;
    align-items: flex-start;
}

.ftt-form-row > .ftt-form-field {
    flex: 1;
    min-width: 0; /* Allows flex items to shrink below content size */
}

.ftt-form-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ftt-form-field label {
    font-weight: bold;
    margin-bottom: 5px;
}

.ftt-form-field input[type="text"],
.ftt-form-field input[type="datetime-local"],
.ftt-form-field input[type="date"],
.ftt-form-field select,
.ftt-form-field textarea {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.ftt-form-field textarea {
    resize: vertical;
}

.ftt-form-field input[type="checkbox"] {
    margin-right: 5px;
}

/* Member / child checkbox selector */
.ftt-member-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fafafa;
}

.ftt-member-check {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    font-weight: normal;
    font-size: 14px;
    transition: border-color 0.15s, background 0.15s;
    white-space: nowrap;
}

.ftt-member-check input[type="checkbox"] {
    margin: 0;
    accent-color: #6A3E8E;
}

.ftt-member-check:has(input:checked) {
    border-color: #6A3E8E;
    background: #f3eef9;
}

.ftt-member-check--family {
    border-color: #F05A5A;
    font-weight: 600;
}

.ftt-member-check--family:has(input:checked) {
    background: #fff0f0;
    border-color: #F05A5A;
}

.ftt-member-check input:disabled + span {
    opacity: 0.4;
}

.ftt-member-divider {
    width: 100%;
    border: none;
    border-top: 1px solid #eee;
    margin: 2px 0;
}

/* Airport Picker Autocomplete */
.ftt-airport-picker {
    position: relative;
}
.ftt-airport-picker input[type="text"] {
    width: 100%;
    box-sizing: border-box;
}
.ftt-airport-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 220px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 9999;
    list-style: none;
    margin: 0;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.ftt-airport-list li {
    padding: 8px 14px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}
.ftt-airport-list li:hover {
    background: #f0f4ff;
    color: #1a3a6b;
}
.ftt-airport-list li strong {
    font-size: 15px;
    letter-spacing: .5px;
}

/* Event Type Combobox */
.ftt-combobox {
    position: relative;
}
.ftt-combobox-input {
    width: 100%;
    box-sizing: border-box;
}
.ftt-combobox-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 240px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 9999;
    list-style: none;
    margin: 0;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.ftt-combobox-list li {
    padding: 8px 14px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}
.ftt-combobox-list li:hover,
.ftt-combobox-list li:focus {
    background: #f0f4ff;
    color: #1a3a6b;
}
.ftt-combobox-other {
    border-top: 1px solid #eee;
    color: #666;
    font-style: italic;
}

/* Time Blocks */
#ftt-time-blocks-container,
#ftt-travel-legs-container {
    margin-top: 20px;
}

#ftt-travel-legs-container {
    padding: 10px 0;
}

.ftt-time-block,
.ftt-travel-leg {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    position: relative;
}

.ftt-time-block h4,
.ftt-travel-leg h4 {
    margin-top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ftt-remove-block {
    background: #dc3232;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.ftt-remove-block:hover {
    background: #c11f1f;
}

.ftt-add-button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}

.ftt-add-button:hover {
    background: #005a87;
}

/* Travel sections toggle */
.ftt-travel-section,
.ftt-flight-section {
    display: none;
}

/* Form buttons */
.ftt-form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.ftt-button-primary {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.ftt-button-primary:hover {
    background: #005a87;
}

.ftt-button-danger {
    background: #dc3232;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.ftt-button-danger:hover {
    background: #c11f1f;
}

/* ==================== Dashboard Styles ==================== */

.ftt-dashboard {
    margin: 20px 0;
}

.ftt-dashboard-section {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ftt-dashboard-section h3 {
    margin-top: 0;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.ftt-dashboard-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.ftt-dashboard-item {
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ftt-dashboard-item:hover {
    background: #e9e9e9;
    border-color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ftt-member-name {
    font-size: 12px;
    font-weight: 600;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    padding: 3px 8px;
    background: #dbeafe;
    border-radius: 3px;
    display: inline-block;
}

/* Calendar member name styling - two line display */
.ftt-calendar-member-name {
    font-size: 10px;
    font-weight: 600;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
    line-height: 1.2;
}

.ftt-dashboard-item h4 {
    margin-top: 0;
    color: #0073aa;
}

.ftt-dashboard-item p {
    margin: 5px 0;
    font-size: 14px;
}

.ftt-no-events {
    color: #666;
    font-style: italic;
}

/* ==================== Event List Styles ==================== */

.ftt-event-list {
    margin: 20px 0;
}

.ftt-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e5e5;
}

.ftt-page-header h2 {
    margin: 0;
}

.ftt-page-nav {
    display: flex;
    gap: 10px;
}

.ftt-event-item {
    background: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ftt-event-item:hover {
    background: #f9f9f9;
    border-color: #0073aa;
}

.ftt-event-item h3 {
    margin: 0 0 10px 0;
    color: #0073aa;
}

.ftt-event-item .ftt-event-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #666;
}

.ftt-event-item .ftt-event-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ftt-event-badges {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.ftt-event-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.ftt-event-badge-travel {
    background: #FF9800;
    color: white;
}

.ftt-event-badge-flight {
    background: #2196F3;
    color: white;
}

.ftt-event-item > p {
    margin: 15px 0 0 0;
    clear: both;
}

/* ==================== Modal Styles ==================== */

.ftt-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.ftt-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.ftt-modal-close {
    color: #fff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 20px;
    cursor: pointer;
}

.ftt-modal-close:hover,
.ftt-modal-close:focus {
    color: rgba(255,255,255,0.75);
}

.ftt-modal-content h2 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #0073aa;
}

.ftt-modal-content h3 {
    border-bottom: 2px solid #0073aa;
    padding-bottom: 3px;
    margin-top: 12px;
    margin-bottom: 10px;
}

.ftt-modal-content p {
    margin: 6px 0;
}

.ftt-modal-content > p:first-of-type {
    margin-top: 0;
}

.ftt-travel-leg-details {
    background: #f9f9f9;
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 4px;
    border-left: 3px solid #0073aa;
}

.ftt-travel-leg-details h4 {
    margin: 0 0 8px 0;
    font-size: 15px;
    color: #0073aa;
}

.ftt-travel-leg-details p {
    margin: 4px 0;
    font-size: 14px;
}

.ftt-booked {
    color: #4CAF50;
    font-weight: bold;
}

.ftt-not-booked {
    color: #F44336;
    font-weight: bold;
}

/* ==================== Responsive Styles ==================== */

@media screen and (max-width: 768px) {
    /* Force all content to stay within viewport */
    * {
        max-width: 100%;
        word-wrap: break-word;
    }
    
    .ftt-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .ftt-form-field {
        margin-bottom: 15px;
    }
    
    /* Make tables responsive */
    table {
        display: block;
        overflow-x: auto;
        width: 100% !important;
    }
    
    /* Responsive images */
    img {
        max-width: 100%;
        height: auto;
    }
    
    .ftt-travel-leg {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .ftt-leg-header {
        margin: -15px -15px 15px -15px;
        padding: 12px 15px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .ftt-leg-header h4 {
        font-size: 16px;
        flex: 1;
        min-width: 150px;
    }
    
    .ftt-remove-block {
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .ftt-checkbox-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .ftt-checkbox-group label {
        width: 100%;
    }
    
    .ftt-round-trip-help {
        font-size: 12px !important;
        padding: 10px 12px !important;
    }
    
    .ftt-suggestion {
        font-size: 13px;
        padding: 10px;
    }
    
    .ftt-flight-suggestions {
        padding: 12px;
    }
    
    .ftt-flight-suggestions h5 {
        font-size: 14px;
    }
    
    .ftt-booking-section {
        padding: 12px;
    }
    
    .ftt-date-group {
        padding: 12px;
    }
    
    .ftt-date-group-label {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .ftt-dashboard-list {
        grid-template-columns: 1fr;
    }
    
    .ftt-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .ftt-event-item .ftt-event-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    /* Make form inputs more touch-friendly on mobile */
    .ftt-form-field input[type="text"],
    .ftt-form-field input[type="date"],
    .ftt-form-field input[type="datetime-local"],
    .ftt-form-field select,
    .ftt-form-field textarea {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .ftt-form-field label {
        font-size: 13px;
    }
}

/* Extra small devices (very small phones) */
@media screen and (max-width: 480px) {
    .ftt-travel-leg {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .ftt-leg-header {
        margin: -12px -12px 12px -12px;
        padding: 10px 12px;
    }
    
    .ftt-leg-header h4 {
        font-size: 15px;
    }
    
    .ftt-remove-block {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .ftt-round-trip-help {
        font-size: 11px !important;
        padding: 8px 10px !important;
    }
    
    .ftt-form-field input[type="text"],
    .ftt-form-field input[type="date"],
    .ftt-form-field input[type="datetime-local"],
    .ftt-form-field select,
    .ftt-form-field textarea {
        padding: 10px;
    }
}

/* ==================== Loading Spinner ==================== */

.ftt-loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: ftt-spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes ftt-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==================== Utility Classes ==================== */

.ftt-text-center {
    text-align: center;
}

.ftt-mt-20 {
    margin-top: 20px;
}

.ftt-mb-20 {
    margin-bottom: 20px;
}

.ftt-hidden {
    display: none;
}

.ftt-error {
    color: #dc3232;
    background: #ffe9e9;
    padding: 10px;
    border: 1px solid #dc3232;
    border-radius: 4px;
    margin: 10px 0;
}

.ftt-success {
    color: #4CAF50;
    background: #e9f9e9;
    padding: 10px;
    border: 1px solid #4CAF50;
    border-radius: 4px;
    margin: 10px 0;
}
/* ==================== Mapbox Autocomplete ==================== */

.ftt-autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 2px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
}

.ftt-autocomplete-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.ftt-autocomplete-item:hover {
    background: #f5f5f5;
}

.ftt-autocomplete-item:last-child {
    border-bottom: none;
}

.ftt-form-field:has(#location_name) {
    position: relative;
}
/* ==================== Flight Search Links ==================== */

.ftt-flight-search-links {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.ftt-flight-search-links p {
    margin: 0 0 10px 0;
    font-weight: 600;
    color: #333;
}

.ftt-flight-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ftt-flight-buttons .button,
.ftt-flight-buttons .button-small {
    margin: 0;
    padding: 8px 16px;
    font-size: 13px;
    text-decoration: none;
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    display: inline-block;
    transition: background 0.2s;
}

.ftt-flight-buttons .button:hover,
.ftt-flight-buttons .button-small:hover {
    background: #135e96;
    color: white;
}

.ftt-flight-buttons .button:nth-child(1) {
    background: #4285f4;
}

.ftt-flight-buttons .button:nth-child(1):hover {
    background: #3367d6;
}

.ftt-flight-buttons .button:nth-child(2) {
    background: #ff6600;
}

.ftt-flight-buttons .button:nth-child(2):hover {
    background: #e55a00;
}

.ftt-flight-buttons .button:nth-child(3) {
    background: #304cb2;
}

.ftt-flight-buttons .button:nth-child(3):hover {
    background: #273a8f;
}

/* ==================== Settings & Alerts UI ==================== */

/* Settings Grid Layout */
.ftt-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.ftt-setting-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    transition: all 0.2s ease;
}

.ftt-setting-card:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.1);
}

.ftt-setting-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0073aa, #005177);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ftt-setting-icon .dashicons {
    color: white;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.ftt-setting-content {
    flex: 1;
}

.ftt-setting-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #23282d;
    margin-bottom: 8px;
}

.ftt-input-large,
.ftt-select-large {
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.2s;
}

.ftt-input-large:focus,
.ftt-select-large:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.ftt-help-text {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 12px;
    font-style: italic;
}

.ftt-setting-action {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-color: #0891b2;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ftt-setting-action .button-large {
    padding: 12px 30px;
    font-size: 16px;
    height: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ftt-setting-action .button-large .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.ftt-message {
    font-size: 14px;
    font-weight: 500;
}

.ftt-message.success {
    color: #10b981;
}

.ftt-message.error {
    color: #ef4444;
}

/* Price Alerts Container */
.ftt-alerts-container {
    background: #fff;
    border-radius: 8px;
    padding: 0;
}

.ftt-alerts-container .ftt-alert-card {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s;
}

.ftt-alerts-container .ftt-alert-card:last-child {
    border-bottom: none;
}

.ftt-alerts-container .ftt-alert-card:hover {
    background-color: #f8f9fa;
}

.ftt-alert-info {
    flex: 1;
}

.ftt-alert-title {
    font-size: 16px;
    font-weight: 600;
    color: #23282d;
    margin-bottom: 6px;
}

.ftt-alert-details {
    font-size: 14px;
    color: #666;
}

.ftt-alert-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
}

.ftt-dashboard-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    color: #23282d;
    margin-bottom: 15px;
}

.ftt-dashboard-section h4 .dashicons {
    color: #0073aa;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* ==================== Flight Linking Styles ==================== */

.ftt-flight-suggestions {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.ftt-flight-suggestions h5 {
    margin: 0 0 15px 0;
    color: #856404;
    font-size: 16px;
}

.ftt-suggestion-card {
    background: white;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
}

.ftt-suggestion-card:last-child {
    margin-bottom: 0;
}

.ftt-suggestion-route {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.ftt-suggestion-details {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.ftt-suggestion-actions {
    display: flex;
    gap: 10px;
}

.ftt-link-flight-btn,
.ftt-unlink-flight-btn {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.ftt-link-flight-btn {
    background: #28a745;
    color: white;
}

.ftt-link-flight-btn:hover {
    background: #218838;
}

.ftt-unlink-flight-btn {
    background: #dc3545;
    color: white;
}

.ftt-unlink-flight-btn:hover {
    background: #c82333;
}

.ftt-linked-flight-group {
    background: #d4edda;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.ftt-linked-flight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ftt-linked-flight-title {
    font-weight: 600;
    color: #155724;
    font-size: 16px;
}

.ftt-price-comparison {
    background: white;
    border-radius: 6px;
    padding: 12px;
    margin: 10px 0;
}

.ftt-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.ftt-price-row:last-child {
    border-bottom: none;
    font-weight: 600;
}

.ftt-price-label {
    color: #666;
    font-size: 14px;
}

.ftt-price-value {
    font-size: 16px;
    font-weight: 500;
}

.ftt-price-savings {
    color: #28a745;
    font-weight: 600;
}

.ftt-price-better {
    background: #d4edda;
    padding: 2px 8px;
    border-radius: 4px;
    color: #155724;
    font-size: 13px;
    margin-left: 8px;
}

.ftt-flight-leg-badge {
    display: inline-block;
    background: #e3f2fd;
    color: #1565c0;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin: 0 4px;
}

.ftt-flight-group-badge {
    display: inline-block;
    background: #d4edda;
    color: #155724;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 8px;
}

/* ==================== Invitations & Parent Linking ==================== */

.ftt-invitation-section {
    padding: 15px 0;
}

.ftt-member-code-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.ftt-member-code-card h4,
.ftt-member-code-card h5 {
    margin: 0 0 12px 0;
    color: white;
}

.ftt-code-display {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
}

.ftt-permanent-code {
    background: rgba(255, 255, 255, 0.2);
    color: #3b82f6;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex: 1;
    text-align: center;
}

.ftt-member-code-card .description {
    color: rgba(255, 255, 255, 0.9);
    margin: 10px 0 0 0;
    font-size: 14px;
}

.ftt-member-code-card .button {
    background: white;
    color: #667eea;
    border: none;
}

.ftt-member-code-card .button:hover {
    background: rgba(255, 255, 255, 0.9);
}

.ftt-invitation-actions {
    margin: 20px 0;
    text-align: center;
}

.ftt-invitations-container {
    margin-top: 20px;
}

.ftt-no-invitations {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.ftt-invitations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.ftt-invitation-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    transition: box-shadow 0.2s;
}

.ftt-invitation-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.ftt-invite-pending {
    border-left: 4px solid #ffc107;
}

.ftt-invite-accepted {
    border-left: 4px solid #28a745;
    background: #f8fff8;
}

.ftt-invite-revoked {
    border-left: 4px solid #dc3545;
    opacity: 0.7;
}

.ftt-invitation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.ftt-invitation-status {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ftt-invite-pending .ftt-invitation-status {
    color: #ff9800;
}

.ftt-invite-accepted .ftt-invitation-status {
    color: #28a745;
}

.ftt-invite-revoked .ftt-invitation-status {
    color: #dc3545;
}

.ftt-invitation-code {
    background: #e9ecef;
    color: #495057;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.ftt-invitation-details p {
    margin: 8px 0;
    font-size: 14px;
}

.ftt-invitation-details strong {
    color: #495057;
}

.ftt-invitation-details small {
    color: #6c757d;
}

.ftt-invitation-card .button {
    margin: 8px 4px 0 0;
}

.ftt-revoke-invite {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.ftt-revoke-invite:hover {
    background: #c82333;
    border-color: #bd2130;
}

/* Parent Code Entry */

.ftt-code-entry-section {
    padding: 15px;
}

.ftt-code-form {
    margin-top: 15px;
}

.ftt-form-inline {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    max-width: 600px;
}

.ftt-code-input {
    flex: 1;
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid #ced4da;
    border-radius: 4px;
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.ftt-code-input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ftt-code-form .button-primary {
    white-space: nowrap;
}

.ftt-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

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

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

.ftt-copy-code {
    cursor: pointer;
}

.ftt-copy-code .dashicons {
    vertical-align: middle;
    margin-right: 2px;
}

/* Responsive */

@media (max-width: 768px) {
    .ftt-invitations-grid {
        grid-template-columns: 1fr;
    }
    
    .ftt-form-inline {
        flex-direction: column;
    }
    
    .ftt-code-input {
        width: 100%;
    }
}

/* Travel Leg Improvements */

.ftt-travel-leg {
    position: relative;
    margin-bottom: 25px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ftt-leg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0073aa;
    background: linear-gradient(to right, #f8f9fa 0%, #ffffff 100%);
    margin: -20px -20px 20px -20px;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
}

.ftt-leg-header h4 {
    margin: 0;
    font-size: 18px;
    color: #0073aa;
    font-weight: 600;
}

.ftt-remove-block {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ftt-remove-block:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.ftt-airport-code {
    text-transform: uppercase !important;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.ftt-airport-name {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-style: italic;
    color: #666;
    font-weight: normal;
}

.ftt-booking-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
    border: 1px solid #e9ecef;
}

.ftt-booking-toggle {
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
}

.ftt-booking-toggle input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
}

.ftt-booking-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.ftt-round-trip-toggle {
    margin-right: 8px;
    width: 18px;
    height: 18px;
}

/* Flight dates section */
.ftt-flight-dates-section {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ftt-date-group {
    background: #f8fbff;
    padding: 15px;
    border-radius: 6px;
    border: 2px solid #4a90e2;
}

.ftt-date-group-label {
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #d0e4f7;
    color: #2271b1;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ftt-date-group .ftt-form-row {
    margin-bottom: 0;
}

.ftt-return-group {
    background: #f0f8ff;
    border-color: #5ba3e8;
}

.ftt-round-trip-return {
    /* Visibility controlled by JavaScript */
}

.ftt-flight-only,
.ftt-non-flight {
    transition: opacity 0.2s;
}

.description {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #666;
    font-style: italic;
    line-height: 1.4;
}

.ftt-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 8px;
}

.ftt-checkbox-group label {
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s;
}

.ftt-checkbox-group label:hover {
    background: #e9ecef;
    border-color: #0073aa;
}

.ftt-checkbox-group input[type="checkbox"] {
    margin-right: 6px;
}

/* Flight Suggestions */
.ftt-flight-suggestions {
    margin: 20px 0;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    border-left: 4px solid #ffc107;
}

.ftt-flight-suggestions h5 {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: #856404;
}

.ftt-suggestion {
    padding: 12px;
    margin: 8px 0;
    background: #fff;
    border-left: 3px solid #ffc107;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

/* Form Field Spacing */
.ftt-form-field {
    margin-bottom: 12px;
}

.ftt-form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    font-size: 14px;
}

.ftt-form-field input[type="text"],
.ftt-form-field input[type="date"],
.ftt-form-field input[type="datetime-local"],
.ftt-form-field select,
.ftt-form-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ftt-form-field input:focus,
.ftt-form-field select:focus,
.ftt-form-field textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Round Trip Help Styling */
.ftt-round-trip-help {
    margin: 15px 0 !important;
    padding: 12px 15px !important;
    background: #e7f3ff !important;
    border-left: 4px solid #2196F3 !important;
    border-radius: 4px;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

.ftt-round-trip-help strong {
    color: #2196F3;
    display: block;
    margin-bottom: 4px;
}

        width: 100%;
    }
    
    .ftt-code-display {
        flex-direction: column;
    }
    
    .ftt-permanent-code {
        width: 100%;
    }
}

/* Pending Invitations Styles */
.ftt-pending-invitations {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.ftt-subsection-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    padding: 4px 0;
    user-select: none;
}

.ftt-subsection-header:hover .ftt-toggle-icon {
    color: #000;
}

.ftt-subsection-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ftt-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #7c3aed;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
}

.ftt-toggle-icon {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #333;
    transition: transform 0.2s ease;
}

.ftt-subsection-header.expanded .ftt-toggle-icon {
    transform: rotate(180deg);
}

.ftt-invitations-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ftt-invitation-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px;
    margin-left: 2%;
    background: #fff9e6;
    border: 2px solid grey;
    border-radius: 4px;
    transition: all 0.2s;
}

.ftt-invitation-card:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.ftt-invitation-info {
    flex-grow: 1;
}

.ftt-invitation-main {
    font-size: 16px;
    margin: 0;
    color: #333;
    line-height: 1.3;
}

.ftt-invitation-main strong {
    font-weight: 600;
}

.ftt-invitation-meta {
    font-size: 10px;
    color: #666;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.2;
}

.ftt-invitation-separator {
    color: #ccc;
}

.ftt-invitation-expires.ftt-expiring-soon {
    color: #d63638;
    font-weight: 600;
}

.ftt-invitation-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.ftt-invitation-actions .button {
    height: 28px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
    line-height: 1;
}

.ftt-invitation-actions .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.ftt-resend-invite:hover {
    background: #2271b1;
    color: white;
}

@media (max-width: 768px) {
    .ftt-invitation-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .ftt-invitation-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .ftt-invitation-meta {
        flex-wrap: wrap;
    }
}

/* Spinning animation for resend button */
.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* User Settings Section */
.ftt-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.ftt-user-preferences-form .ftt-setting-card {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
}

.ftt-user-preferences-form .ftt-setting-icon {
    margin-bottom: 10px;
}

.ftt-user-preferences-form .ftt-setting-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #2196F3;
}

.ftt-user-preferences-form .ftt-setting-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.ftt-user-preferences-form .ftt-help-text {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

/* Subscription Section */
.ftt-subscription-section {
    margin-top: 20px;
}

.ftt-subscription-summary {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
}

.ftt-subscription-status {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 6px;
    background: #f5f5f5;
}

.ftt-subscription-status.status-active {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
}

.ftt-subscription-status.status-trialing {
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
}

.ftt-subscription-status.status-past_due,
.ftt-subscription-status.status-suspended {
    background: #ffebee;
    border-left: 4px solid #f44336;
}

.ftt-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #2196F3;
    color: white;
}

.ftt-trial-info {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}

.ftt-subscription-details {
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.ftt-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.ftt-detail-label {
    font-weight: 500;
}

.ftt-detail-value {
    color: #666;
}

/* ==================== Invitation Details Box on Registration ==================== */

.ftt-invitation-details-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    color: white;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.ftt-invite-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.ftt-invite-icon {
    font-size: 32px;
}

.ftt-invite-header h3 {
    margin: 0;
    color: white;
    font-size: 22px;
    font-weight: 600;
}

.ftt-invite-info {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 20px;
}

.ftt-invite-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    gap: 15px;
}

.ftt-invite-row:last-of-type {
    border-bottom: none;
}

.ftt-invite-row strong {
    font-weight: 600;
    min-width: 140px;
    color: rgba(255, 255, 255, 0.9);
}

.ftt-invite-row span {
    flex: 1;
    text-align: right;
    color: white;
}

.ftt-billing-status {
    background: rgba(255, 255, 255, 0.1);
    margin: 10px 0;
    padding: 12px;
    border-radius: 6px;
}

.ftt-billing-status span {
    font-weight: 500;
}

.ftt-billing-active,
.ftt-billing-trialing {
    color: #4ade80 !important;
}

.ftt-billing-past_due,
.ftt-billing-unpaid {
    color: #fbbf24 !important;
}

.ftt-invite-note {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.ftt-invite-note p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

.ftt-invite-expires {
    margin-top: 12px;
    text-align: center;
}

.ftt-invite-expires small {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

@media screen and (max-width: 768px) {
    .ftt-invitation-details-box {
        padding: 20px 15px;
    }
    
    .ftt-invite-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .ftt-invite-row span {
        text-align: left;
    }
    
    .ftt-invite-header h3 {
        font-size: 18px;
    }
}

.ftt-subscription-actions {
    margin-top: 15px;
    text-align: center;
}

.ftt-subscription-actions .button {
    min-width: 200px;
}

.entry-header { display:none; }
.content-area { margin-top: 5px !important;}
/* ════════════════════════════════════════════════════════
   HOMEPAGE
════════════════════════════════════════════════════════ */
/* ═══ Homepage Base ═══ */
.ftt-homepage {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
}

.ftt-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ═══ Hero ═══ */
.ftt-hero {
    background: linear-gradient(135deg, #6A3E8E 0%, #5B347A 100%);
    color: white;
    padding: 90px 20px;
    text-align: center;
}

.ftt-hero-content {
    max-width: 820px;
    margin: 0 auto;
}

.ftt-hero-title {
    font-size: 50px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
    color: white;
}

.ftt-hero-accent {
    color: #FFD700;
    display: block;
    margin-top: 8px;
}

.ftt-hero-description {
    font-size: 20px;
    margin: 20px 0 35px;
    opacity: 0.95;
    line-height: 1.7;
}

.ftt-hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.ftt-hero-note {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* ═══ Buttons ═══ */
.ftt-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.ftt-btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

.ftt-btn-primary {
    background: #F05A5A;
    color: white !important;
}

.ftt-btn-primary:hover:not(:disabled) {
    background: #E84E4E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 90, 90, 0.3);
}

.ftt-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.ftt-btn-secondary {
    background: white;
    color: #6A3E8E !important;
    border: 2px solid white;
}

.ftt-btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* ═══ Section Titles ═══ */
.ftt-section-title {
    font-size: 38px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 15px 0;
    color: #6A3E8E;
}

.ftt-section-subtitle {
    font-size: 18px;
    text-align: center;
    color: #666;
    margin: 0 auto 50px;
    max-width: 700px;
}

/* ═══ Calendar Section ═══ */
.ftt-calendar-section {
    padding: 80px 20px;
    background: white;
}

.ftt-calendar-inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: center;
}

.ftt-calendar-text h2 {
    font-size: 36px;
    font-weight: 700;
    color: #6A3E8E;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.ftt-cal-intro {
    font-size: 17px;
    color: #555;
    margin: 0 0 28px 0;
    line-height: 1.7;
}

.ftt-calendar-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ftt-calendar-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    font-size: 17px;
    color: #444;
    border-bottom: 1px solid #E9E3F2;
}

.ftt-calendar-features li:last-child {
    border-bottom: none;
}

.ftt-cal-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

/* ═══ Calendar Mockup ═══ */
.ftt-mock-calendar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(106, 62, 142, 0.18);
    overflow: hidden;
    border: 1px solid #E9E3F2;
}

.ftt-mock-cal-header {
    background: #6A3E8E;
    color: white;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ftt-mock-cal-month {
    font-weight: 600;
    font-size: 15px;
}

.ftt-mock-cal-nav {
    display: flex;
    gap: 12px;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.8;
}

.ftt-mock-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #F0EAF8;
    border-bottom: 1px solid #E9E3F2;
}

.ftt-mock-cal-days span {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #6A3E8E;
    padding: 8px 4px;
    text-transform: uppercase;
}

.ftt-mock-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.ftt-mock-day {
    min-height: 72px;
    border-right: 1px solid #F0EAF8;
    border-bottom: 1px solid #F0EAF8;
    padding: 5px 4px;
    vertical-align: top;
}

.ftt-day-num {
    font-size: 11px;
    color: #999;
    display: block;
    margin-bottom: 3px;
    font-weight: 500;
}

.ftt-cal-event {
    font-size: 10px;
    color: white;
    padding: 3px 5px;
    border-radius: 3px;
    margin-top: 2px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ftt-cal-alert {
    font-size: 10px;
    color: #c0392b;
    background: #fdecea;
    padding: 3px 5px;
    border-radius: 3px;
    margin-top: 2px;
    line-height: 1.3;
    font-weight: 600;
    border: 1px solid #f5c6cb;
}

/* ═══ Flight Price Tracking Section ═══ */
.ftt-price-section {
    padding: 80px 20px;
    background: white;
}

.ftt-price-inner {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: center;
}

.ftt-price-text h2 {
    font-size: 36px;
    font-weight: 700;
    color: #6A3E8E;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.ftt-price-lead {
    font-size: 18px;
    color: #555;
    margin: 0 0 28px 0;
    line-height: 1.7;
}

.ftt-price-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ftt-price-list li {
    padding: 10px 0 10px 28px;
    position: relative;
    font-size: 16px;
    color: #444;
    border-bottom: 1px solid #F0EAF8;
}

.ftt-price-list li:last-child {
    border-bottom: none;
}

.ftt-price-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #F05A5A;
    font-weight: bold;
    font-size: 15px;
}

/* ═══ Phone Mockup ═══ */
.ftt-phone-mock-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ftt-phone-frame {
    width: 240px;
    background: #1a1a1a;
    border-radius: 36px;
    padding: 12px 10px 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), inset 0 0 0 2px #333;
}

.ftt-phone-notch {
    width: 60px;
    height: 16px;
    background: #1a1a1a;
    border-radius: 0 0 12px 12px;
    margin: 0 auto 8px;
}

.ftt-phone-screen {
    background: #f5f5f5;
    border-radius: 26px;
    overflow: hidden;
    padding: 14px 12px;
    min-height: 360px;
}

.ftt-phone-notification {
    background: white;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    margin-bottom: 14px;
    border-left: 4px solid #F05A5A;
}

.ftt-notif-icon {
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.ftt-notif-title {
    font-size: 12px;
    font-weight: 700;
    color: #222;
    margin-bottom: 3px;
}

.ftt-notif-msg {
    font-size: 11px;
    color: #555;
    line-height: 1.5;
}

.ftt-savings-badge {
    display: inline-block;
    background: #e8f8ee;
    color: #27AE60;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    margin-top: 3px;
}

.ftt-phone-routes {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ftt-phone-route-header {
    background: #6A3E8E;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 8px 12px;
}

.ftt-phone-route-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #F0EAF8;
    font-size: 12px;
    color: #444;
}

.ftt-phone-route-item:last-child {
    border-bottom: none;
}

.ftt-price-val {
    font-weight: 600;
    color: #333;
}

.ftt-price-val.ftt-drop {
    color: #27AE60;
    font-weight: 700;
}

.ftt-price-drop-row {
    background: #f0faf4;
}

/* ═══ Scenarios ═══ */
.ftt-scenarios {
    padding: 80px 20px;
    background: #F8F5FB;
}

.ftt-scenarios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.ftt-scenario-card {
    background: white;
    border-radius: 10px;
    padding: 36px 24px;
    text-align: center;
    border: 2px solid #E9E3F2;
    transition: all 0.3s;
}

.ftt-scenario-card:hover {
    border-color: #6A3E8E;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(106, 62, 142, 0.12);
}

.ftt-scenario-icon {
    font-size: 46px;
    margin-bottom: 14px;
    display: block;
}

.ftt-scenario-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #6A3E8E;
    margin: 0 0 10px 0;
}

.ftt-scenario-card p {
    color: #666;
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

/* ═══ How It Works ═══ */
.ftt-how-it-works {
    padding: 80px 20px;
    background: white;
}

.ftt-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.ftt-step {
    text-align: center;
}

.ftt-step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6A3E8E, #5B347A);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.ftt-step h3 {
    font-size: 22px;
    margin: 0 0 12px 0;
    color: #6A3E8E;
}

.ftt-step p {
    color: #666;
    margin: 0;
}

/* ═══ Testimonials ═══ */
.ftt-testimonials {
    padding: 80px 20px;
    background: #F8F5FB;
}

.ftt-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.ftt-testimonial {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border-top: 4px solid #6A3E8E;
}

.ftt-testimonial-text {
    font-size: 16px;
    font-style: italic;
    color: #555;
    margin: 0 0 15px 0;
    line-height: 1.7;
}

.ftt-testimonial-author {
    font-size: 14px;
    font-weight: 600;
    color: #6A3E8E;
    margin: 0;
}

/* ═══ Pricing ═══ */
.ftt-pricing {
    padding: 80px 20px;
    background: #F8F5FB;
}

.ftt-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.ftt-pricing-card {
    background: #F8F5FB;
    padding: 40px 30px;
    border-radius: 8px;
    border: 2px solid #E9E3F2;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.ftt-pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(106, 62, 142, 0.15);
}

.ftt-pricing-featured {
    border-color: #6A3E8E;
    border-width: 3px;
    transform: scale(1.05);
    background: white;
}

.ftt-pricing-featured:hover {
    transform: scale(1.05) translateY(-8px);
}

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

.ftt-pricing-card h3 {
    font-size: 24px;
    margin: 0 0 15px 0;
    color: #6A3E8E;
}

.ftt-price {
    font-size: 48px;
    font-weight: 700;
    color: #6A3E8E;
    margin: 0 0 25px 0;
}

.ftt-price span {
    font-size: 18px;
    font-weight: 400;
    color: #666;
}

.ftt-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
}

.ftt-pricing-features li {
    padding: 10px 0;
    color: #555;
    border-bottom: 1px solid #E9E3F2;
}

.ftt-pricing-features li:last-child {
    border-bottom: none;
}

.ftt-pricing-note {
    text-align: center;
    margin-top: 40px;
    color: #666;
    font-size: 14px;
}

/* ═══ FAQ ═══ */
.ftt-faq {
    padding: 80px 20px;
    background: white;
}

.ftt-faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.ftt-faq-item h3 {
    font-size: 20px;
    margin: 0 0 10px 0;
    color: #6A3E8E;
}

.ftt-faq-item p {
    color: #666;
    margin: 0;
}

/* ═══ Final CTA ═══ */
.ftt-final-cta {
    padding: 90px 20px;
    background: linear-gradient(135deg, #6A3E8E 0%, #5B347A 100%);
    color: white;
    text-align: center;
}

.ftt-final-cta h2 {
    font-size: 38px;
    margin: 0 0 15px 0;
    color: white;
}

.ftt-final-cta p {
    font-size: 20px;
    margin: 0 0 35px 0;
    opacity: 0.95;
}

.ftt-cta-buttons {
    margin-bottom: 20px;
}

.ftt-cta-note {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* ═══════════════════════════════
   RESPONSIVE
═══════════════════════════════ */

/* Stack two-column layouts at 900px */
@media (max-width: 900px) {
    .ftt-calendar-inner,
    .ftt-price-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Calendar mockup above text */
    .ftt-calendar-mock-wrap {
        order: -1;
    }

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

@media (max-width: 768px) {
    .ftt-homepage {
        overflow-x: hidden;
    }

    .ftt-container {
        padding: 15px;
    }

    .ftt-hero {
        padding: 50px 20px;
    }

    .ftt-hero-title {
        font-size: 32px;
    }

    .ftt-hero-description {
        font-size: 16px;
    }

    .ftt-hero-cta {
        flex-direction: column;
        gap: 12px;
    }

    .ftt-btn {
        width: 100%;
        text-align: center;
    }

    .ftt-section-title {
        font-size: 28px;
    }

    .ftt-section-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .ftt-calendar-text h2,
    .ftt-price-text h2 {
        font-size: 26px;
    }

    .ftt-calendar-section,
    .ftt-price-section,
    .ftt-scenarios,
    .ftt-how-it-works,
    .ftt-testimonials,
    .ftt-pricing,
    .ftt-faq,
    .ftt-final-cta {
        padding: 50px 20px;
    }

    .ftt-mock-day {
        min-height: 54px;
    }

    .ftt-steps {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .ftt-pricing-grid {
        grid-template-columns: 1fr;
    }

    .ftt-pricing-featured {
        transform: scale(1);
    }

    .ftt-pricing-featured:hover {
        transform: translateY(-8px);
    }

    .ftt-faq-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ftt-testimonial-grid {
        grid-template-columns: 1fr;
    }

    .ftt-final-cta h2 {
        font-size: 28px;
    }

    .ftt-final-cta p {
        font-size: 17px;
    }

    .ftt-phone-frame {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .ftt-hero-title {
        font-size: 26px;
    }

    .ftt-section-title {
        font-size: 22px;
    }

    .ftt-scenarios-grid {
        grid-template-columns: 1fr;
    }

    .ftt-steps {
        grid-template-columns: 1fr;
    }

    .ftt-cal-event {
        font-size: 8px;
        padding: 2px 3px;
    }

    .ftt-calendar-features li {
        font-size: 15px;
    }
}

/* ═══════════════════════════════════════════════════════════
   HOMEPAGE — NEW SECTIONS (v2 redesign)
═══════════════════════════════════════════════════════════ */

/* ─── Calendar Screenshot Section ─── */
.ftt-cal-screenshot-section {
    padding: 80px 20px;
    background: white;
}

.ftt-cal-screenshot-inner {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 60px;
    align-items: center;
}

.ftt-cal-screenshot-text h2 {
    font-size: 34px;
    font-weight: 700;
    color: #6A3E8E;
    margin: 0 0 16px 0;
    line-height: 1.25;
}

.ftt-cal-screenshot-text > p {
    font-size: 17px;
    color: #555;
    line-height: 1.7;
    margin: 0 0 24px 0;
}

.ftt-cal-screenshot-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
}

.ftt-cal-screenshot-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 16px;
    color: #444;
    border-bottom: 1px solid #E9E3F2;
}

.ftt-cal-screenshot-features li:last-child {
    border-bottom: none;
}

.ftt-check {
    color: #F05A5A;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.ftt-cal-screenshot-img-wrap {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 50px rgba(106, 62, 142, 0.2);
    border: 3px solid #E9E3F2;
}

.ftt-cal-screenshot-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ─── Problem Section ─── */
.ftt-problem {
    padding: 80px 20px;
    background: #F8F5FB;
}

/* 5-card grid: 3 on row 1, 2 centered on row 2 */
.ftt-problem-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 28px;
    margin-top: 50px;
}

.ftt-problem-card {
    grid-column: span 2;
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    border: 2px solid #E9E3F2;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.ftt-problem-card:hover {
    border-color: #6A3E8E;
    box-shadow: 0 4px 16px rgba(106, 62, 142, 0.12);
}

/* center the orphaned last two cards */
.ftt-problem-card:nth-child(4) { grid-column: 2 / span 2; }
.ftt-problem-card:nth-child(5) { grid-column: 4 / span 2; }

.ftt-problem-icon {
    font-size: 46px;
    margin-bottom: 14px;
}

.ftt-problem-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #6A3E8E;
}

.ftt-problem-card p {
    color: #666;
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

/* ─── Solution / Features ─── */
.ftt-solution {
    padding: 80px 20px;
    background: #F8F5FB;
}

.ftt-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 28px;
    margin-top: 50px;
}

.ftt-feature-card {
    background: #F8F5FB;
    padding: 32px;
    border-radius: 10px;
    border: 2px solid #E9E3F2;
    transition: all 0.3s;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

.ftt-feature-card:hover {
    border-color: #6A3E8E;
    box-shadow: 0 4px 16px rgba(106, 62, 142, 0.12);
    transform: translateY(-3px);
}

.ftt-feature-icon {
    font-size: 38px;
    margin-bottom: 12px;
    display: block;
}

.ftt-feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #6A3E8E;
    margin: 0 0 10px 0;
}

.ftt-feature-card p {
    color: #555;
    margin: 0 0 4px 0;
}

.ftt-feature-list {
    list-style: none;
    padding: 0;
    margin: 14px 0 0 0;
}

.ftt-feature-list li {
    padding: 6px 0 6px 22px;
    position: relative;
    color: #555;
    font-size: 14px;
    border-bottom: 1px solid #EDE8F5;
}

.ftt-feature-list li:last-child {
    border-bottom: none;
}

.ftt-feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #F05A5A;
    font-weight: 700;
}

/* ─── Use Cases ─── */
.ftt-use-cases {
    padding: 80px 20px;
    background: white;
}

.ftt-use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.ftt-use-case {
    background: white;
    padding: 28px;
    border-radius: 10px;
    border-left: 4px solid #F05A5A;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.ftt-use-case h3 {
    font-size: 19px;
    font-weight: 700;
    color: #6A3E8E;
    margin: 0 0 10px 0;
}

.ftt-use-case p {
    color: #666;
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

/* ─── Pricing (new per-child model) ─── */
.ftt-pricing-intro {
    text-align: center;
    font-size: 17px;
    color: #444;
    margin: 30px auto;
    padding: 20px 30px;
    background: #F8F5FB;
    border-radius: 8px;
    border: 2px solid #E9E3F2;
    max-width: 600px;
}

.ftt-pricing-model {
    text-align: center;
    border: 3px solid #6A3E8E;
    border-radius: 12px;
    padding: 40px;
    max-width: 480px;
    margin: 40px auto;
    background: white;
    box-shadow: 0 4px 20px rgba(106, 62, 142, 0.12);
}

.ftt-pricing-model h3 {
    font-size: 20px;
    font-weight: 700;
    color: #6A3E8E;
    margin: 0 0 16px 0;
}

.ftt-base-price {
    font-size: 52px;
    font-weight: 700;
    color: #6A3E8E;
    line-height: 1;
    margin: 8px 0 12px 0;
}

.ftt-base-price span {
    font-size: 20px;
    font-weight: 400;
    color: #888;
}

.ftt-addon-price {
    font-size: 17px;
    color: #555;
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid #E9E3F2;
}

.ftt-pricing-model p {
    margin-top: 16px;
    color: #888;
    font-size: 13px;
}

.ftt-pricing-table {
    margin: 40px auto;
    max-width: 680px;
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.ftt-pricing-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    background: white;
}

.ftt-pricing-table thead th {
    background: #6A3E8E;
    color: white;
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.ftt-pricing-table thead th:first-child { border-radius: 10px 0 0 0; }
.ftt-pricing-table thead th:last-child  { border-radius: 0 10px 0 0; }

.ftt-pricing-table td {
    padding: 13px 20px;
    border-bottom: 1px solid #E9E3F2;
    color: #444;
}

.ftt-pricing-table tr:last-child td {
    border-bottom: none;
}

.ftt-pricing-table tr:nth-child(even) {
    background: #F8F5FB;
}

.ftt-pricing-highlight {
    font-weight: 700;
    color: #6A3E8E;
    font-size: 16px;
}

.ftt-pricing-includes {
    background: #F8F5FB;
    border-radius: 10px;
    padding: 30px 40px;
    max-width: 680px;
    margin: 30px auto;
    border: 2px solid #E9E3F2;
}

.ftt-pricing-includes h4 {
    font-size: 17px;
    font-weight: 700;
    color: #6A3E8E;
    margin: 0 0 18px 0;
}

.ftt-pricing-includes ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ftt-pricing-includes ul li {
    padding: 6px 0 6px 22px;
    position: relative;
    color: #444;
    font-size: 14px;
}

.ftt-pricing-includes ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #F05A5A;
    font-weight: 700;
}

.ftt-trial-banner {
    background: linear-gradient(135deg, #6A3E8E 0%, #5B347A 100%);
    color: white;
    text-align: center;
    padding: 44px 40px;
    border-radius: 12px;
    margin-top: 40px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.ftt-trial-banner h4 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0 0 12px 0;
}

.ftt-trial-banner p {
    font-size: 16px;
    opacity: 0.92;
    margin: 0 0 24px 0;
}

/* ─── Responsive: new sections ─── */
@media (max-width: 900px) {
    .ftt-cal-screenshot-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .ftt-cal-screenshot-img-wrap {
        order: -1;
    }

    .ftt-problem-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .ftt-problem-card { grid-column: span 2; }
    .ftt-problem-card:nth-child(4) { grid-column: 1 / span 2; }
    .ftt-problem-card:nth-child(5) { grid-column: 3 / span 2; }
}

@media (max-width: 768px) {
    .ftt-cal-screenshot-section,
    .ftt-problem,
    .ftt-solution,
    .ftt-use-cases {
        padding: 50px 20px;
    }

    .ftt-problem-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .ftt-problem-card,
    .ftt-problem-card:nth-child(4),
    .ftt-problem-card:nth-child(5) {
        grid-column: span 1;
    }

    .ftt-features-grid {
        grid-template-columns: 1fr;
    }

    .ftt-use-case-grid {
        grid-template-columns: 1fr;
    }

    .ftt-pricing-includes ul {
        grid-template-columns: 1fr;
    }

    .ftt-trial-banner {
        padding: 30px 20px;
    }

    .ftt-cal-screenshot-text h2 {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .ftt-problem-grid {
        grid-template-columns: 1fr;
    }

    .ftt-problem-card,
    .ftt-problem-card:nth-child(4),
    .ftt-problem-card:nth-child(5) {
        grid-column: span 1;
    }
}

/* Move Astra's scroll-to-top button above the reCAPTCHA badge */
#ast-scroll-to-top-right {
    right: 20px !important;
    bottom: 80px !important;
}

/* Registration form: policy acceptance checkbox */
.ftt-checkbox-field {
    background: #F8F5FB;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 25px;
}

.ftt-checkbox-field label {
    display: flex;
    align-items: flex-start;
    font-weight: 400;
    gap: 10px;
    cursor: pointer;
}

.ftt-checkbox-field label > span {
    display: inline;
    line-height: 1.5;
}

.ftt-checkbox-field input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}

/* =========================================================
   Cookie Consent Banner
   ========================================================= */

.ftt-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #6A3E8E;
    color: #fff;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.18);
    transform: translateY(100%);
    transition: transform 0.35s ease;
}

.ftt-cookie-banner.ftt-cc-bottom {
    bottom: 0;
    transform: translateY(100%);
}

.ftt-cookie-banner.ftt-cc-top {
    top: 0;
    transform: translateY(-100%);
}

.ftt-cookie-banner.ftt-cc-visible {
    transform: translateY(0);
}

.ftt-cc-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
}

.ftt-cc-message {
    flex: 1 1 280px;
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #fff;
}

.ftt-cc-policy-link {
    color: #E9E3F2;
    text-decoration: underline;
}

.ftt-cc-policy-link:hover {
    color: #fff;
}

.ftt-cc-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.ftt-cc-btn {
    padding: 9px 22px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.ftt-cc-btn-accept {
    background: #F05A5A;
    color: #fff;
}

.ftt-cc-btn-accept:hover {
    background: #E84E4E;
    transform: translateY(-1px);
}

.ftt-cc-btn-decline {
    background: transparent;
    color: #E9E3F2;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.ftt-cc-btn-decline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

@media (max-width: 600px) {
    .ftt-cc-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 16px;
    }

    .ftt-cc-actions {
        width: 100%;
    }

    .ftt-cc-btn {
        flex: 1;
        text-align: center;
    }
}

/* Injected nav menu items (My Subscription / Pricing / Login / Logout) */
li.ftt-billing-item,
li.ftt-pricing-item,
li.ftt-login-logout-item {
    margin: 0;
    padding: 0;
}

li.ftt-billing-item > a,
li.ftt-pricing-item > a,
li.ftt-login-logout-item > a {
    display: inline-block;
    padding: 0 1em;
}

/* ==================== Exit Survey Modal ==================== */

.ftt-survey-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.55);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ftt-survey-overlay.ftt-survey-visible {
    display: flex;
}

body.ftt-survey-open {
    overflow: hidden;
}

.ftt-survey-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 520px;
    position: relative;
    overflow: hidden;
    animation: fttSurveyIn 0.2s ease;
}

@keyframes fttSurveyIn {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ftt-survey-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.ftt-survey-close:hover {
    color: #333;
    background: #f0f0f0;
}

.ftt-survey-header {
    background: #6A3E8E;
    padding: 22px 50px 22px 24px;
}

.ftt-survey-heading {
    color: #fff !important;
    font-size: 18px !important;
    margin: 0 !important;
    font-weight: 600;
}

.ftt-survey-body {
    padding: 24px;
}

.ftt-survey-progress {
    height: 4px;
    background: #E9E3F2;
    border-radius: 2px;
    margin-bottom: 16px;
    overflow: hidden;
}

.ftt-survey-progress-bar {
    height: 100%;
    background: #6A3E8E;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.ftt-survey-step-label {
    font-size: 12px;
    color: #999;
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ftt-survey-question {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 18px;
    line-height: 1.4;
}

.ftt-survey-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 2px solid #E9E3F2;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    font-weight: normal;
    color: #333;
}

.ftt-survey-option:hover {
    border-color: #6A3E8E;
    background: #F8F6FB;
}

.ftt-survey-option input[type="radio"],
.ftt-survey-option input[type="checkbox"] {
    accent-color: #6A3E8E;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.ftt-survey-option:has(input:checked) {
    border-color: #6A3E8E;
    background: #F0EBF7;
}

.ftt-survey-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #E9E3F2;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.ftt-survey-textarea:focus {
    outline: none;
    border-color: #6A3E8E;
    box-shadow: 0 0 0 3px rgba(106, 62, 142, 0.1);
}

.ftt-survey-submitting {
    text-align: center;
    color: #999;
    padding: 20px 0;
}

.ftt-survey-thankyou {
    text-align: center;
    padding: 10px 0 4px;
}

.ftt-survey-thankyou-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: #6A3E8E;
    color: #fff;
    border-radius: 50%;
    font-size: 24px;
    margin-bottom: 14px;
}

.ftt-survey-thankyou p {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.ftt-survey-footer {
    padding: 0 24px 22px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.ftt-survey-btn {
    padding: 10px 22px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.ftt-survey-btn-primary {
    background: #F05A5A;
    color: #fff;
}

.ftt-survey-btn-primary:hover {
    background: #E84E4E;
    transform: translateY(-1px);
}

.ftt-survey-btn-secondary {
    background: #f0f0f0;
    color: #555;
}

.ftt-survey-btn-secondary:hover {
    background: #e2e2e2;
}

@media (max-width: 560px) {
    .ftt-survey-modal {
        border-radius: 8px;
    }
    .ftt-survey-footer {
        flex-direction: column-reverse;
    }
    .ftt-survey-btn {
        width: 100%;
        text-align: center;
    }
}

/* Survey subheadline */
.ftt-survey-subheadline {
    font-size: 14px;
    color: #9a7bbf;
    margin: 4px 0 0;
    font-weight: 400;
    line-height: 1.4;
}

/* Conditional response step */
.ftt-survey-cond-response {
    text-align: center;
    padding: 24px 8px;
}

.ftt-survey-cond-icon {
    font-size: 36px;
    margin-bottom: 14px;
}

.ftt-survey-cond-text {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin: 0;
    white-space: pre-wrap;
}

/* =====================================================================
   Calendar Subscribe Page
   ===================================================================== */

.ftt-subscribe-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 24px 16px 60px;
}

.ftt-subscribe-intro {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    color: #444;
}

/* ── Action Buttons (top) ─────────────────────────── */
.ftt-cal-actions {
    margin: 0 0 24px;
}

.ftt-cal-action-label {
    font-weight: 600;
    margin: 0 0 12px;
    font-size: 15px;
}

.ftt-cal-action-note {
    font-size: 13px;
    color: #666;
    margin: 10px 0 0;
}

.ftt-cal-buttons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ftt-cal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
    transition: opacity .15s, transform .1s;
}
.ftt-cal-btn:hover { opacity: .88; transform: translateY(-1px); }

.ftt-cal-btn-apple  { background: #000; color: #fff; }
.ftt-cal-btn-google { background: #4285F4; color: #fff; }
.ftt-cal-btn-other  { background: #f0f0f0; color: #333; border-color: #ccc; }
.ftt-cal-btn-qr     { background: #fff; color: #333; border-color: #ccc; }
.ftt-cal-btn-icon   { font-size: 18px; line-height: 1; }

/* ── URL copy row (desktop) ───────────────────────── */
.ftt-url-section { margin-bottom: 18px; }
.ftt-url-label   { display: block; margin-bottom: 8px; font-size: 14px; }

.ftt-url-copy {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.ftt-url-copy input {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: monospace;
    font-size: 13px;
    background: #fafafa;
}

.ftt-url-hint {
    font-size: 12px;
    color: #888;
    margin: 6px 0 0;
}

.ftt-desktop-quick {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

/* ── QR code panel ────────────────────────────────── */
.ftt-qr-panel {
    margin-top: 18px;
    padding: 20px;
    background: #f7f7f7;
    border-radius: 8px;
    text-align: center;
}
.ftt-qr-img  { display: block; margin: 12px auto; border-radius: 4px; }
.ftt-qr-note { font-size: 13px; color: #555; margin-top: 8px; }

/* ── Section divider ──────────────────────────────── */
.ftt-section-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 32px 0;
}

/* ── Platform instruction blocks ─────────────────── */
.ftt-platform-instructions { margin-bottom: 12px; }

.ftt-platform {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.ftt-platform summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    list-style: none;
    background: #fafafa;
    user-select: none;
}
.ftt-platform summary::-webkit-details-marker { display: none; }
.ftt-platform summary::before {
    content: '›';
    font-size: 20px;
    font-weight: 300;
    color: #888;
    transition: transform .2s;
}
.ftt-platform[open] summary::before { transform: rotate(90deg); }
.ftt-platform summary:hover { background: #f2f2f2; }

.ftt-platform-icon { font-size: 20px; }
.ftt-platform-name { flex: 1; }

.ftt-badge-recommended {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.ftt-platform-body {
    padding: 20px 22px 22px;
    border-top: 1px solid #e8e8e8;
}

.ftt-platform-intro {
    font-size: 14px;
    color: #555;
    margin: 0 0 16px;
    line-height: 1.55;
}

.ftt-platform-tip {
    background: #fffbea;
    border-left: 4px solid #f9a825;
    padding: 10px 14px;
    margin: 14px 0;
    font-size: 14px;
    border-radius: 0 4px 4px 0;
}

.ftt-platform-note {
    background: #e8f4fd;
    border-left: 4px solid #1976d2;
    padding: 10px 14px;
    margin: 14px 0;
    font-size: 14px;
    border-radius: 0 4px 4px 0;
}

.ftt-platform-body ol { padding-left: 22px; margin: 12px 0; }
.ftt-platform-body ol li { margin: 8px 0; font-size: 14px; line-height: 1.5; }
.ftt-platform-body ul  { padding-left: 22px; margin: 12px 0; }
.ftt-platform-body ul li { margin: 6px 0; font-size: 14px; }

/* ── Version tabs ─────────────────────────────────── */
.ftt-version-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.ftt-ver-tab {
    padding: 6px 14px;
    border: 1px solid #ccc;
    border-radius: 20px;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    color: #444;
    transition: background .15s, border-color .15s, color .15s;
}
.ftt-ver-tab:hover      { border-color: #999; background: #f5f5f5; }
.ftt-ver-tab.ftt-ver-active {
    background: #1a73e8;
    border-color: #1a73e8;
    color: #fff;
}

/* ── App-specific notes (Other apps section) ──────── */
.ftt-app-notes {
    background: #f7f7f7;
    border-radius: 6px;
    padding: 14px 16px;
    margin: 14px 0;
}
.ftt-app-notes p { margin: 8px 0; font-size: 14px; line-height: 1.5; }
.ftt-app-notes p:first-child { margin-top: 0; }
.ftt-app-notes p:last-child  { margin-bottom: 0; }

/* ── Why/limits cards ─────────────────────────────── */
.ftt-cal-why { margin-bottom: 28px; }
.ftt-cal-why h3 { margin-bottom: 16px; }

.ftt-cal-why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.ftt-why-card {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}
.ftt-why-card .ftt-why-icon { font-size: 22px; flex-shrink: 0; line-height: 1.2; }
.ftt-why-card strong { display: block; margin-bottom: 4px; font-size: 14px; }
.ftt-why-card p { margin: 0; color: #555; }

.ftt-why-good  { background: #f0fff4; border: 1px solid #a3d9a5; }
.ftt-why-limit { background: #f0f7ff; border: 1px solid #a8c7ef; }

/* ── FAQ ──────────────────────────────────────────── */
.ftt-faq details {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 8px;
}
.ftt-faq summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    list-style: none;
}
.ftt-faq summary::-webkit-details-marker { display: none; }
.ftt-faq summary:before { content: '+ '; color: #888; }
.ftt-faq[open] summary:before { content: '− '; }
.ftt-faq details[open] summary:before { content: '− '; }
.ftt-faq p, .ftt-faq ol {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}
.ftt-faq ol { padding-left: 22px; }
.ftt-faq ol li { margin: 6px 0; }

/* Notices */
.ftt-notice { padding: 14px 18px; border-radius: 6px; margin: 20px 0; }
.ftt-notice-warning { background: #fff8e1; border-left: 4px solid #f9a825; }
.ftt-notice-info    { background: #e8f4fd; border-left: 4px solid #1976d2; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 600px) {
    .ftt-cal-why-grid { grid-template-columns: 1fr; }
    .ftt-cal-buttons-row { flex-direction: column; }
    .ftt-cal-btn { width: 100%; justify-content: center; }
    .ftt-desktop-quick { flex-direction: column; }
    .ftt-url-copy { flex-direction: column; }
    .ftt-url-copy input { font-size: 12px; }
}

/* =====================================================================
   Personal Settings / Profile Page
   ===================================================================== */

.ftt-profile-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 16px 60px;
    font-family: inherit;
}

.ftt-profile-back {
    margin-bottom: 8px;
}

.ftt-back-link {
    color: #6A3E8E;
    text-decoration: none;
    font-size: 14px;
}

.ftt-back-link:hover {
    text-decoration: underline;
}

.ftt-profile-heading {
    font-size: 28px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0 0 28px;
}

/* ── Flash message ── */
.ftt-profile-message {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 24px;
    font-weight: 500;
}

.ftt-msg-success {
    background: #edf7ed;
    border: 1px solid #4caf50;
    color: #1e6b20;
}

.ftt-msg-error {
    background: #fdecea;
    border: 1px solid #f44336;
    color: #b71c1c;
}

/* ── Sections ── */
.ftt-profile-section {
    background: #ffffff;
    border: 1px solid #e9e3f2;
    border-radius: 12px;
    padding: 28px 28px 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.ftt-profile-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ftt-profile-section-icon {
    font-size: 20px;
}

/* ── Form grid ── */
.ftt-profile-form-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ftt-profile-form-grid .ftt-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ftt-profile-form-grid .ftt-form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.ftt-profile-form-grid input[type="text"],
.ftt-profile-form-grid input[type="email"],
.ftt-profile-form-grid input[type="tel"],
.ftt-profile-form-grid input[type="password"],
.ftt-profile-form-grid select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0c8e0;
    border-radius: 8px;
    font-size: 15px;
    color: #2c2c2c;
    background: #fafafa;
    box-sizing: border-box;
    transition: border-color .15s;
}

.ftt-profile-form-grid input:focus,
.ftt-profile-form-grid select:focus {
    outline: none;
    border-color: #6A3E8E;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(106,62,142,.12);
}

.ftt-field-hint {
    font-size: 12px;
    color: #888;
    margin: 5px 0 0;
    line-height: 1.4;
}

/* ── Actions ── */
.ftt-profile-actions {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0ebf8;
}

.ftt-profile-actions .ftt-btn {
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
}

.ftt-btn-ghost {
    background: transparent;
    border: 1px solid #6A3E8E;
    color: #6A3E8E;
    padding: 6px 14px;
    font-size: 13px;
}

.ftt-btn-ghost:hover:not(:disabled) {
    background: #f4eefb;
}

/* ── Radio group ── */
.ftt-radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.ftt-radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 400;
    color: #333;
}

/* ── Toggle switch (digest on/off) ── */
.ftt-toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.ftt-toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.ftt-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ftt-toggle-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 24px;
    transition: background .2s;
}

.ftt-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
}

.ftt-toggle-switch input:checked + .ftt-toggle-slider {
    background: #6A3E8E;
}

.ftt-toggle-switch input:checked + .ftt-toggle-slider::before {
    transform: translateX(20px);
}

.ftt-toggle-text {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

/* ── Airport picker ── */
.ftt-airport-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.ftt-airport-row:last-child {
    margin-bottom: 0;
}

.ftt-airport-slot-label {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    min-width: 120px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.ftt-airport-picker-wrap {
    flex: 1;
}

.ftt-airport-search {
    width: 100%;
}

.ftt-airport-suggestions {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #d0c8e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    max-height: 220px;
    overflow-y: auto;
    z-index: 999;
    list-style: none;
    margin: 0;
    padding: 4px 0;
}

.ftt-airport-suggestions li {
    padding: 9px 14px;
    font-size: 14px;
    cursor: pointer;
    color: #333;
}

.ftt-airport-suggestions li:hover {
    background: #f4eefb;
    color: #6A3E8E;
}

/* ── Children section ── */
.ftt-child-profile-card {
    border: 1px solid #e9e3f2;
    border-radius: 10px;
    margin-bottom: 14px;
    overflow: hidden;
}

.ftt-child-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #f8f4fd;
}

.ftt-child-name {
    font-size: 15px;
    color: #2c2c2c;
}

.ftt-child-profile-body {
    padding: 20px 18px 16px;
    border-top: 1px solid #e9e3f2;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .ftt-profile-form-grid .ftt-form-row {
        grid-template-columns: 1fr;
    }

    .ftt-profile-section {
        padding: 20px 16px;
    }

    .ftt-airport-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .ftt-airport-slot-label {
        min-width: unset;
    }
}

/* ============================================================
   Connected Calendars – External iCal Feed UI
   ============================================================ */

/* Feed row */
.ftt-ext-feed-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    margin-bottom: 12px;
    background: #f9f9fb;
    border: 1px solid #e2e2e6;
    border-radius: 8px;
    transition: border-color .15s;
}
.ftt-ext-feed-row:hover {
    border-color: #b0b0c0;
}

/* Fields row inside a feed row */
.ftt-ext-feed-fields {
    display: grid;
    grid-template-columns: 1fr 200px auto;
    gap: 12px;
    align-items: start;
}

/* Keep colour field from stretching */
.ftt-ext-color-field {
    flex-shrink: 0;
}

/* Colour swatch picker */
.ftt-color-swatch-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 4px;
}

.ftt-color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    outline: none;
    transition: transform .1s, border-color .1s;
}
.ftt-color-swatch:hover {
    transform: scale(1.15);
}
.ftt-color-swatch.is-selected {
    border-color: #fff;
    box-shadow: 0 0 0 2px #333;
    transform: scale(1.1);
}

/* Meta row (badge + remove) */
.ftt-ext-feed-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Status badges */
.ftt-ext-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
}
.ftt-ext-badge-ok {
    background: #d4edda;
    color: #155724;
}
.ftt-ext-badge-error {
    background: #f8d7da;
    color: #721c24;
    cursor: help;
}

/* Footer row: Add button + count note */
.ftt-ext-feed-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 16px;
}
.ftt-ext-feed-count-note {
    font-size: 12px;
    color: #888;
}

/* FullCalendar – external events styling */
.fc .ftt-ext-event {
    opacity: .85;
    font-style: italic;
    border-left: 3px solid rgba(0,0,0,.2) !important;
}
.fc .ftt-ext-event .fc-event-title::before {
    content: "↗ ";
    font-style: normal;
    font-size: .8em;
    opacity: .8;
}

/* ── Responsive Connected Calendars ── */
@media (max-width: 700px) {
    .ftt-ext-feed-fields {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════════════════
   Onboarding Wizard + Trial Expired
   ══════════════════════════════════════════════════════ */

/* ── Subscription status banner: card-free trial warning (yellow) ── */
.ftt-subscription-status-banner {
    padding: 10px 20px;
    font-size: 14px;
    line-height: 1.5;
    border-bottom: 1px solid rgba(0,0,0,.08);
}
.ftt-subscription-status-banner a { font-weight: 600; }
.ftt-status-trialing        { background: #d4edda; color: #155724; }
.ftt-status-trial-no-card   { background: #fff3cd; color: #856404; border-bottom-color: #ffc107; }
.ftt-status-canceled        { background: #fff3cd; color: #856404; }
.ftt-status-past_due        { background: #f8d7da; color: #721c24; }

/* ── Progress bar ── */
.ftt-onboarding-wrapper {
    max-width: 700px;
    margin: 32px auto;
    padding: 0 16px;
}
.ftt-onboarding-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
}
.ftt-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: .4;
    transition: opacity .2s;
}
.ftt-progress-step.active { opacity: 1; }
.ftt-progress-step.done   { opacity: .75; }
.ftt-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #4a90d9;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ftt-step-label {
    font-size: 12px;
    color: #555;
    white-space: nowrap;
}
.ftt-progress-divider {
    flex: 1;
    height: 2px;
    background: #ddd;
    max-width: 80px;
    margin: 0 8px;
    margin-bottom: 18px;
}

/* ── Step containers ── */
.ftt-onboarding-step { text-align: center; }
.ftt-onboarding-icon { font-size: 48px; margin-bottom: 8px; }
.ftt-onboarding-step h2 { margin: 0 0 8px; font-size: 24px; }
.ftt-onboarding-subtitle { color: #555; margin: 0 0 28px; font-size: 15px; }

/* ── Onboarding card (step 1) ── */
.ftt-onboarding-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 28px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.ftt-onboarding-card h3 { margin: 0 0 8px; }
.ftt-onboard-lead { color: #555; margin-bottom: 20px; }
.ftt-onboard-feed-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.ftt-onboard-feed-url  { flex: 2; min-width: 200px; }
.ftt-onboard-feed-label { flex: 1; min-width: 140px; }

.ftt-onboard-how-to {
    font-size: 13px;
    color: #555;
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 8px 12px;
}
.ftt-onboard-how-to summary { cursor: pointer; font-weight: 600; }
.ftt-onboard-how-to ul { margin: 8px 0 0 16px; padding: 0; }
.ftt-onboard-how-to li { margin-bottom: 4px; }

/* Primary CTA – big centred dashboard button */
.ftt-onboard-primary-cta {
    text-align: center;
    margin: 28px 0 24px;
}
.ftt-btn-lg {
    padding: 14px 36px;
    font-size: 16px;
    border-radius: 8px;
    font-weight: 600;
}

/* Optional divider between primary CTA and optional import section */
.ftt-onboard-optional-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    color: #999;
    font-size: 13px;
}
.ftt-onboard-optional-divider::before,
.ftt-onboard-optional-divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid #e0e0e0;
}

/* Soften the optional card slightly */
.ftt-onboard-optional-card {
    border: 1px dashed #d0d0d0;
    background: #fafafa;
}

.ftt-onboarding-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 16px;
}

/* ── Onboarding pricing row (step 2) ── */
.ftt-onboarding-pricing-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.ftt-pricing-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 24px 28px;
    width: 260px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    position: relative;
}
.ftt-pricing-card.ftt-pricing-featured {
    border-color: #4a90d9;
    box-shadow: 0 4px 16px rgba(74,144,217,.2);
}
.ftt-pricing-featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #4a90d9;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 12px;
    white-space: nowrap;
}
.ftt-pricing-interval { font-size: 13px; color: #777; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .05em; }
.ftt-pricing-price    { font-size: 32px; font-weight: 700; margin: 4px 0 4px; }
.ftt-price-per        { font-size: 14px; font-weight: 400; color: #777; }
.ftt-pricing-note     { font-size: 12px; color: #888; margin-bottom: 20px; }
.ftt-pricing-features { text-align: left; margin: 0 0 20px; padding: 0 0 0 18px; font-size: 13px; }
.ftt-pricing-features li { margin-bottom: 4px; }

.ftt-onboard-skip-billing {
    text-align: center;
    margin-top: 8px;
}
.ftt-onboard-reassurance { font-size: 12px; color: #888; margin-bottom: 6px; }
.ftt-onboard-skip-billing-link { font-size: 13px; color: #777; text-decoration: underline; }
.ftt-onboard-skip-billing-link:hover { color: #333; }

/* ── Shared message feedback box ── */
.ftt-onboard-msg {
    margin-top: 12px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
}
.ftt-msg-ok    { background: #d4edda; color: #155724; }
.ftt-msg-error { background: #f8d7da; color: #721c24; }

/* ── Trial Expired page ── */
.ftt-trial-expired-wrapper {
    max-width: 680px;
    margin: 40px auto;
    padding: 0 16px;
    text-align: center;
}
.ftt-trial-expired-icon   { font-size: 52px; margin-bottom: 8px; }
.ftt-trial-expired-header h2 { font-size: 26px; margin: 0 0 12px; }
.ftt-trial-expired-header p   { color: #555; margin-bottom: 8px; }
.ftt-trial-expired-pricing {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 32px 0 20px;
}
.ftt-trial-expired-contact {
    font-size: 13px;
    color: #888;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .ftt-onboarding-pricing-row,
    .ftt-trial-expired-pricing { flex-direction: column; align-items: center; }
    .ftt-pricing-card { width: 100%; max-width: 320px; }
    .ftt-onboard-feed-row { flex-direction: column; }
}
