.aqdf-form {
    width: 100%;
    max-width: 720px;
    padding: 28px;
    background: #003C63;
    color: #ffffff;
    font-family: "Source Sans Pro", Arial, sans-serif;
    border-radius: 8px;
    box-sizing: border-box;
}

.aqdf-form *,
.aqdf-form *::before,
.aqdf-form *::after {
    box-sizing: border-box;
}

.aqdf-form [hidden] {
    display: none !important;
}

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

.aqdf-wide {
    grid-column: 1 / -1;
}

.aqdf-form label {
    display: block;
    margin: 0 0 18px;
    font-size: 16px;
    font-weight: 600;
}

.aqdf-form label span {
    display: block;
    margin-bottom: 7px;
}

.aqdf-form input,
.aqdf-form select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d7dee5;
    border-radius: 6px;
    background: #f3f5f7;
    color: #16212a;
    font-family: "Source Sans Pro", Arial, sans-serif;
    font-size: 16px;
    padding: 11px 13px;
    outline: none;
}

.aqdf-select-wrap {
    position: relative;
}

.aqdf-select-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    width: 10px;
    height: 10px;
    border-right: 2px solid #003C63;
    border-bottom: 2px solid #003C63;
    pointer-events: none;
    transform: translateY(-65%) rotate(45deg);
    transition: transform 160ms ease;
}

.aqdf-select-wrap.is-open::after,
.aqdf-select-wrap:focus-within::after {
    transform: translateY(-35%) rotate(225deg);
}

.aqdf-service-select {
    appearance: none;
    padding-right: 44px;
}

.aqdf-service-amount[readonly] {
    cursor: default;
    opacity: 0.92;
}

.aqdf-form input:focus,
.aqdf-form select:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.24);
}

.aqdf-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 20px 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    font-size: 18px;
}

.aqdf-total {
    font-size: 24px;
    line-height: 1;
}

.aqdf-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 6px;
    background: #ffffff;
    color: #003C63;
    cursor: pointer;
    font-family: "Source Sans Pro", Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    padding: 12px 18px;
}

.aqdf-submit:hover,
.aqdf-submit:focus {
    background: #eef2f5;
}

.aqdf-notice {
    max-width: 720px;
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 6px;
    font-family: "Source Sans Pro", Arial, sans-serif;
}

.aqdf-success {
    background: #e6f5ec;
    color: #114d2a;
    border: 1px solid #b7dfc6;
}

.aqdf-error {
    background: #fdecec;
    color: #7a1f1f;
    border: 1px solid #f2b9b9;
}

@media (max-width: 640px) {
    .aqdf-form {
        padding: 20px;
    }

    .aqdf-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .aqdf-summary {
        align-items: flex-start;
        flex-direction: column;
    }
}
