* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f7f4ed;
    color: #17372d;
}

a {
    color: inherit;
    text-decoration: none;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    padding: 36px;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.login-card h1 {
    margin: 0;
    text-align: center;
    color: #17372d;
}

.login-subtitle {
    margin: 8px 0 28px;
    text-align: center;
    color: #8b6b2e;
}

.login-card label {
    display: block;
    margin: 16px 0 7px;
    font-weight: 600;
}

.login-card input {
    width: 100%;
    padding: 13px;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    font-size: 16px;
}

.login-card button {
    width: 100%;
    margin-top: 24px;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #17372d;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.error-message {
    margin-bottom: 18px;
    padding: 12px;
    border-radius: 8px;
    background: #ffe8e8;
    color: #9d1c1c;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px 6%;
    background: #17372d;
    color: #ffffff;
}

.topbar h1 {
    margin: 0;
    font-size: 26px;
}

.topbar p {
    margin: 5px 0 0;
    color: #e4d5ad;
}

.logout-link {
    padding: 10px 16px;
    border: 1px solid #e4d5ad;
    border-radius: 8px;
}

.dashboard-container {
    width: min(1100px, 90%);
    margin: 40px auto;
}

.welcome-card {
    padding: 28px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.welcome-card h2 {
    margin-top: 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 28px;
}

.dashboard-card {
    min-height: 170px;
    padding: 26px;
    background: #ffffff;
    border: 1px solid #e3dccb;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.dashboard-card h3 {
    margin-top: 0;
    color: #8b6b2e;
}

@media (max-width: 760px) {
    .topbar {
        align-items: flex-start;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.page-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.primary-button,
.secondary-button,
.remove-option {
    display: inline-block;
    padding: 11px 18px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.primary-button {
    background: #17372d;
    color: #ffffff;
}

.secondary-button {
    background: #e4d5ad;
    color: #17372d;
}

.remove-option {
    background: #f2dddd;
    color: #8a1f1f;
    white-space: nowrap;
}

.activity-list {
    display: grid;
    gap: 22px;
}

.activity-card {
    padding: 26px;
    background: #ffffff;
    border: 1px solid #e3dccb;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.activity-card h2 {
    margin: 6px 0 20px;
}

.activity-category {
    margin: 0;
    color: #8b6b2e;
    font-weight: 700;
}

.form-card {
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e3dccb;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea,
.option-row input {
    width: 100%;
    padding: 13px;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    background: #ffffff;
    color: #17372d;
    font-family: inherit;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 7px;
    color: #666666;
}

.option-section {
    margin: 30px 0;
    padding-top: 26px;
    border-top: 1px solid #e3dccb;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 18px;
}

.section-heading h2 {
    margin: 0 0 5px;
}

.section-heading p {
    margin: 0;
    color: #666666;
}

.option-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 26px 0;
}

.checkbox-row input {
    width: 20px;
    height: 20px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 26px;
}

.success-message {
    margin-bottom: 20px;
    padding: 14px;
    border-radius: 8px;
    background: #e3f4e9;
    color: #175c32;
}

@media (max-width: 650px) {
    .section-heading {
        flex-direction: column;
    }

    .option-row {
        align-items: stretch;
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column;
    }

    .primary-button,
    .secondary-button,
    .remove-option {
        text-align: center;
    }
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.first-section {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.flight-card {
    margin-top: 22px;
    padding: 22px;
    background: #f8f6f0;
    border: 1px solid #e3dccb;
    border-radius: 12px;
}

.flight-card h3 {
    margin-top: 0;
    color: #8b6b2e;
}

.flight-card h4 {
    margin: 0 0 16px;
}

.flight-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.client-list {
    display: grid;
    gap: 22px;
}

.client-card {
    padding: 26px;
    background: #ffffff;
    border: 1px solid #e3dccb;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.client-card h2 {
    margin: 0;
}

.client-destination {
    margin: 8px 0 0;
    color: #8b6b2e;
    font-weight: 700;
}

.client-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.detail-label {
    display: block;
    margin-bottom: 6px;
    color: #8b6b2e;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.client-details-grid p {
    margin: 0;
}

.client-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

@media (max-width: 760px) {
    .form-grid,
    .flight-row,
    .client-details-grid {
        grid-template-columns: 1fr;
    }
}