/* Trip Calculator - Clean Minimal Design */
.trip-wrap {
    max-width: 780px;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
    color: #1a1a2e;
}

/* Progress Steps */
.trip-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    gap: 0;
}

.trip-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.trip-step.active,
.trip-step.done {
    opacity: 1;
}

.trip-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.trip-step.active .trip-step-circle {
    background: #6c63ff;
    color: white;
}

.trip-step.done .trip-step-circle {
    background: #10b981;
    color: white;
}

.trip-step span {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
}

.trip-step.active span {
    color: #6c63ff;
    font-weight: 600;
}

.trip-step-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    min-width: 40px;
    max-width: 80px;
    margin-bottom: 20px;
}

/* Sections */
.trip-section {
    display: none;
}

.trip-section.active {
    display: block;
}

.trip-section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1a1a2e;
}

/* Fields */
.trip-field {
    margin-bottom: 20px;
}

.trip-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.trip-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: #1a1a2e;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
    outline: none;
}

.trip-input:focus {
    border-color: #6c63ff;
}

.trip-select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: #1a1a2e;
    background: #fff;
    box-sizing: border-box;
    outline: none;
    cursor: pointer;
}

.trip-date-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trip-date-row span {
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
}

/* Trip Type Buttons */
.trip-type-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.trip-type-btn {
    padding: 8px 18px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    color: #374151;
}

.trip-type-btn.active {
    border-color: #6c63ff;
    background: #f0effe;
    color: #6c63ff;
    font-weight: 600;
}

/* Cards */
.trip-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.trip-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.trip-card-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

.trip-card-header small {
    font-size: 12px;
    color: #9ca3af;
}

/* Add Button */
.trip-add-btn {
    padding: 6px 14px;
    background: #6c63ff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}

.trip-add-btn:hover {
    background: #5a52d5;
}

/* Person Row */
.trip-person-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.trip-person-row:last-child {
    border-bottom: none;
}

.trip-person-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0effe;
    color: #6c63ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.trip-person-name {
    flex: 1;
    padding: 8px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    outline: none;
}

.trip-person-name:focus {
    border-color: #6c63ff;
}

.trip-person-del {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.trip-person-del:hover {
    background: #fee2e2;
}

/* Expense Grid */
.trip-expense-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.trip-expense-item label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

/* Prefs Table */
.trip-prefs-scroll {
    overflow-x: auto;
}

.trip-prefs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.trip-prefs-table th {
    background: #f9fafb;
    padding: 10px 12px;
    text-align: center;
    font-weight: 600;
    color: #374151;
    border-bottom: 1.5px solid #e5e7eb;
    white-space: nowrap;
}

.trip-prefs-table th:first-child {
    text-align: left;
}

.trip-prefs-table td {
    padding: 10px 12px;
    text-align: center;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}

.trip-prefs-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.trip-prefs-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #6c63ff;
    cursor: pointer;
}

/* Nav Buttons */
.trip-nav-btns {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.trip-next-btn {
    padding: 12px 28px;
    background: #6c63ff;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}

.trip-next-btn:hover {
    background: #5a52d5;
}

.trip-back-btn {
    padding: 12px 24px;
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}

.trip-back-btn:hover {
    background: #e5e7eb;
}

/* Summary Cards */
.trip-summary-totals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.trip-total-card {
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.trip-total-card .ttc-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.trip-total-card .ttc-value {
    font-size: 22px;
    font-weight: 700;
    color: #6c63ff;
}

/* Person Summary Cards */
.trip-person-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.trip-person-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
}

.trip-person-card .tpc-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trip-person-card .tpc-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 4px 0;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.trip-person-card .tpc-total {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
    color: #6c63ff;
    padding-top: 8px;
    margin-top: 4px;
}

/* Export Buttons */
.trip-export-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.trip-export-btn {
    padding: 10px 18px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    color: #374151;
}

.trip-export-btn:hover {
    border-color: #6c63ff;
    color: #6c63ff;
}

.trip-export-btn.whatsapp {
    background: #25d366;
    border-color: #25d366;
    color: white;
}

.trip-export-btn.whatsapp:hover {
    background: #1ebe5d;
}

/* Responsive */
@media (max-width: 600px) {
    .trip-expense-grid {
        grid-template-columns: 1fr;
    }
    .trip-summary-totals {
        grid-template-columns: 1fr;
    }
    .trip-person-cards {
        grid-template-columns: 1fr;
    }
    .trip-date-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
