.agp-hidden {
    display: none !important;
}

.agp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border: 0;
    border-radius: 6px;
    padding: 11px 18px;
    font: 700 15px/1.2 Arial, sans-serif;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.agp-button:hover {
    transform: translateY(-1px);
}

.agp-button:focus-visible,
.agp-modal-close:focus-visible,
.agp-package-search input:focus-visible,
.agp-standalone-form input:focus-visible,
.agp-standalone-form select:focus-visible,
.agp-standalone-form textarea:focus-visible {
    outline: 3px solid #e35b2f;
    outline-offset: 3px;
}

.agp-button:disabled {
    cursor: wait;
    opacity: .65;
    transform: none;
}

.agp-button-primary {
    background: #213352;
    color: #fff !important;
}

.agp-button-secondary {
    background: #eef2f5;
    color: #213352 !important;
}

.agp-button-accent {
    background: #e35b2f;
    color: #fff !important;
}

.agp-button-light {
    background: #eef2f5;
    color: #213352 !important;
}

body.agp-modal-active {
    overflow: hidden;
}

.agp-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: none;
    background: rgba(12, 19, 31, .58);
}

.agp-modal-backdrop.is-visible {
    display: block;
}

.agp-planner-modal {
    position: fixed;
    z-index: 99999;
    left: 50%;
    top: 50%;
    display: none;
    width: min(94vw, 760px);
    max-height: 92vh;
    overflow: auto;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .35);
    color: #213352;
    font-family: Arial, sans-serif;
}

.agp-planner-modal.is-visible {
    display: block;
}

.agp-modal-header {
    position: relative;
    padding: 24px 28px;
    background: #213352;
    color: #fff;
    text-align: center;
}

.agp-modal-header h2 {
    margin: 0 42px 8px;
    color: #fff;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: 0;
}

.agp-modal-header p {
    margin: 0;
    color: #eef7ff;
    font-size: 15px;
}

.agp-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.agp-modal-body {
    padding: 26px 28px;
}

.agp-choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.agp-choice-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.agp-choice-card {
    border: 1px solid #d7e0e7;
    border-radius: 8px;
    padding: 22px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(33, 51, 82, .08);
}

.agp-choice-card h3 {
    margin: 0 0 8px;
    color: #213352;
    font-size: 21px;
    line-height: 1.25;
}

.agp-choice-card p {
    margin: 0 0 18px;
    color: #52616d;
    font-size: 14px;
    line-height: 1.5;
}

.agp-choice-icon {
    margin-bottom: 10px;
    font-size: 34px;
}

.agp-form-view[hidden] {
    display: none;
}

.agp-form-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.agp-form-title h3 {
    margin: 0;
    color: #213352;
    font-size: 22px;
    line-height: 1.25;
}

.agp-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.agp-help-form label,
.agp-standalone-form label,
.agp-lead-form label {
    display: block;
    margin-bottom: 14px;
    color: #213352;
    font-size: 13px;
    font-weight: 700;
}

.agp-help-form input,
.agp-standalone-form input,
.agp-standalone-form select,
.agp-standalone-form textarea,
.agp-help-form select,
.agp-help-form textarea,
.agp-lead-form input,
.agp-lead-form textarea {
    width: 100%;
    box-sizing: border-box;
    margin-top: 6px;
    border: 1px solid #ccd6dd;
    border-radius: 6px;
    padding: 11px 12px;
    background: #fff;
    color: #213352;
    font-size: 15px;
}

.agp-help-form textarea,
.agp-standalone-form textarea,
.agp-lead-form textarea {
    min-height: 96px;
    resize: vertical;
}

.agp-checkbox-field {
    margin: 2px 0 14px;
    padding: 0;
    border: 0;
}

.agp-checkbox-field legend {
    margin-bottom: 8px;
    color: #213352;
    font-size: 13px;
    font-weight: 700;
}

.agp-checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
}

.agp-checkbox-grid label {
    margin: 0;
    color: #26343d;
    font-weight: 400;
}

.agp-checkbox-grid input {
    width: auto;
    margin: 0 6px 0 0;
}

.agp-form-note {
    margin: 12px 0 0;
    color: #5b6870;
    font-size: 12px;
}

.agp-form-message {
    min-height: 20px;
    margin-top: 12px;
    border-radius: 6px;
    font-size: 14px;
}

.agp-form-message.is-success,
.agp-form-message.is-error {
    padding: 12px;
}

.agp-form-message.is-success {
    background: #e8f7ee;
    color: #155d2d;
}

.agp-form-message.is-error {
    background: #fdeceb;
    color: #8a1f14;
}

.agp-package-search {
    --agp-text: #213352;
    color: var(--agp-text);
    font-family: Arial, sans-serif;
}

.agp-package-search h3,
.agp-package-search p,
.agp-package-search label,
.agp-package-search span,
.agp-package-search strong {
    color: var(--agp-text);
}

.agp-step {
    margin-bottom: 30px;
}

.agp-step h3 {
    margin: 0 0 16px;
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: 0;
}

.agp-step-instruction {
    margin: -8px 0 16px;
    color: #52616d !important;
    line-height: 1.5;
}

.agp-traveller-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.agp-traveller-grid label {
    min-width: 0;
    margin: 0;
    color: #213352;
    font-size: 14px;
    font-weight: 700;
}

.agp-traveller-grid small {
    display: block;
    min-height: 18px;
    margin-top: 2px;
    color: #52616d;
    font-size: 12px;
    font-weight: 400;
}

.agp-traveller-grid input {
    width: 100%;
    box-sizing: border-box;
    margin-top: 7px;
    border: 1px solid #ccd6dd;
    border-radius: 6px;
    padding: 11px 12px;
    background: #fff;
    color: #213352;
    font-size: 16px;
}

.agp-traveller-fieldset {
    margin: 4px 0 16px;
    border: 1px solid #d7e0e7;
    border-radius: 8px;
    padding: 14px;
}

.agp-traveller-fieldset legend {
    padding: 0 6px;
    color: #213352;
    font-size: 14px;
    font-weight: 700;
}

.agp-inline-error {
    min-height: 20px;
    margin: 8px 0 12px;
    color: #8a1f14 !important;
    font-size: 14px;
}

.agp-inline-error.is-error {
    border-radius: 6px;
    padding: 10px 12px;
    background: #fdeceb;
}

.agp-card-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.agp-destination-card {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    min-height: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #eef2f5;
    cursor: pointer;
}

.agp-destination-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.agp-destination-card:focus-within {
    outline: 3px solid #e35b2f;
    outline-offset: 3px;
}

.agp-destination-card.agp-selected::after {
    content: "\2713";
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: #e35b2f;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

.agp-destination-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.agp-destination-card span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 9px 8px;
    background: rgba(33, 51, 82, .86);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

.agp-destination-card.agp-selected,
.agp-radio-group label.agp-selected,
.agp-season-card.agp-selected {
    border-color: #e35b2f;
    box-shadow: 0 0 0 2px rgba(227, 91, 47, .18);
}

.agp-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.agp-radio-group label {
    min-width: 74px;
    border: 2px solid #d7e0e7;
    border-radius: 8px;
    padding: 12px 16px;
    background: #fff;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.agp-radio-group input {
    position: absolute;
    opacity: 0;
}

.agp-season-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.agp-season-card {
    display: block;
    min-height: 100px;
    border: 2px solid #d7e0e7;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
    cursor: pointer;
}

.agp-season-card input {
    position: absolute;
    opacity: 0;
}

.agp-season-card strong,
.agp-season-card small {
    display: block;
}

.agp-season-card strong {
    margin-bottom: 6px;
    font-size: 17px;
}

.agp-season-card small {
    color: #52616d;
    line-height: 1.35;
}

.agp-price-result,
.agp-inline-form-panel,
.agp-lead-form {
    margin-top: 18px;
    border: 1px solid #d7e0e7;
    border-radius: 8px;
    padding: 22px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(33, 51, 82, .08);
}

.agp-inline-form-panel {
    border-top: 4px solid #e35b2f;
}

.agp-inline-form-panel .agp-lead-form {
    margin: 0;
    border: 0;
    padding: 0;
    box-shadow: none;
}

.agp-inline-form-panel .agp-form-title {
    align-items: flex-start;
}

.agp-inline-form-panel .agp-form-title p {
    margin: 6px 0 0;
    color: #52616d;
}

.agp-package-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    margin: 16px 0;
}

.agp-package-summary div {
    min-width: 0;
}

.agp-package-summary dt {
    color: #52616d;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.agp-package-summary dd {
    margin: 3px 0 0;
    color: #213352;
    line-height: 1.45;
}

.agp-package-description {
    line-height: 1.55;
}

.agp-estimate-note {
    margin: 16px 0 0;
    border-left: 4px solid #d7e0e7;
    padding: 10px 14px;
    background: #f7f9fb;
    color: #52616d !important;
    font-size: 13px;
    line-height: 1.55;
}

.agp-price-result h3,
.agp-lead-form h3 {
    margin-top: 0;
}

.agp-price-line {
    margin: 12px 0 0;
}

.agp-price-line span {
    display: inline-block;
    margin-right: 6px;
    color: #52616d;
    font-size: 16px;
}

.agp-price-line strong {
    color: #e35b2f;
    font-size: 34px;
    line-height: 1;
}

.agp-per-person {
    margin-top: 4px;
    color: #52616d;
    font-size: 13px;
}

.agp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.agp-submit-popup {
    position: fixed;
    inset: 0;
    z-index: 99997;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 19, 31, .5);
}

.agp-submit-popup-box {
    width: min(92vw, 420px);
    border-radius: 8px;
    padding: 24px;
    background: #fff;
    text-align: center;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
}

.agp-submit-popup-box h3 {
    margin-top: 0;
}

@media (max-width: 980px) {
    .agp-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .agp-choice-grid,
    .agp-choice-grid-wide,
    .agp-form-grid,
    .agp-checkbox-grid,
    .agp-season-options {
        grid-template-columns: 1fr;
    }

    .agp-traveller-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .agp-traveller-grid label:last-child {
        grid-column: 1 / -1;
    }

    .agp-package-summary {
        grid-template-columns: 1fr;
    }

    .agp-modal-header,
    .agp-modal-body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .agp-modal-header h2 {
        font-size: 24px;
    }

    .agp-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .agp-destination-card {
        min-height: 0;
        height: auto;
    }

    .agp-destination-card img {
        height: 100%;
    }
}

@media (max-width: 460px) {
    .agp-traveller-grid {
        grid-template-columns: 1fr;
    }

    .agp-traveller-grid label:last-child {
        grid-column: auto;
    }

    .agp-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .agp-destination-card {
        min-height: 0;
        height: auto;
    }

    .agp-destination-card img {
        height: 100%;
    }

    .agp-destination-card span {
        padding: 8px 6px;
        font-size: 12px;
    }
}
