/**
 * @author    TogStro GmbH
 * @copyright 2026 TogStro GmbH
 * @license   Commercial license
 */

.prestaquote-open {
    overflow: hidden;
}

.prestaquote-modal[hidden] {
    display: none;
}

.prestaquote-profile[hidden],
.prestaquote-field-professional[hidden],
.prestaquote-field-administration[hidden] {
    display: none;
}

.prestaquote-modal {
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    padding: 20px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 10000;
}

.prestaquote-form {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
    color: inherit;
    font-family: inherit;
    max-height: calc(100vh - 40px);
    max-width: 680px;
    overflow: auto;
    padding: 24px;
    text-align: left;
    width: 100%;
}

.prestaquote-head {
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    margin: -4px 0 18px;
    padding-bottom: 12px;
}

.prestaquote-form .h3 {
    font-family: inherit;
    margin: 0;
}

.prestaquote-x {
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    opacity: 0.65;
    padding: 0 2px;
}

.prestaquote-x:hover,
.prestaquote-x:focus {
    opacity: 1;
}

.prestaquote-choice-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 6px;
}

.prestaquote-choice {
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    gap: 8px;
    min-height: 42px;
    padding: 9px 10px;
}

.prestaquote-choice:hover,
.prestaquote-choice:focus-within {
    border-color: currentColor;
}

.prestaquote-choice input {
    flex: 0 0 auto;
    margin: 0;
}

.prestaquote-choice span {
    font-size: 0.92rem;
    line-height: 1.2;
}

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

.prestaquote-note {
    color: inherit;
    font-size: 0.82rem;
    margin: 8px 0 0;
    opacity: 0.72;
}

.prestaquote-carrier-list {
    display: grid;
    gap: 8px;
    margin-top: 6px;
}

.prestaquote-carrier-option {
    align-items: flex-start;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    padding: 10px 12px;
}

.prestaquote-carrier-option:hover,
.prestaquote-carrier-option:focus-within {
    border-color: currentColor;
}

.prestaquote-carrier-option input {
    flex: 0 0 auto;
    margin: 3px 0 0;
}

.prestaquote-carrier-copy {
    display: block;
    min-width: 0;
}

.prestaquote-carrier-copy strong,
.prestaquote-carrier-copy small {
    display: block;
    overflow-wrap: anywhere;
}

.prestaquote-carrier-select {
    border: 2px solid currentColor;
    font-weight: 600;
    min-height: 44px;
}

.prestaquote-carrier-delay {
    display: block;
    line-height: 1.4;
    margin-top: 6px;
    opacity: 0.75;
}

.prestaquote-carrier-copy strong {
    font-size: 0.94rem;
    line-height: 1.25;
}

.prestaquote-carrier-copy small {
    font-size: 0.82rem;
    line-height: 1.3;
    margin-top: 3px;
    opacity: 0.7;
}

.prestaquote-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
}

.prestaquote-honeypot {
    height: 0;
    left: -10000px;
    overflow: hidden;
    position: absolute;
    width: 0;
}

.prestaquote-submit {
    align-items: center;
    display: inline-flex;
    justify-content: center;
}

.prestaquote-submit.is-loading::before {
    animation: prestaquote-spin 0.75s linear infinite;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    border-top-color: currentColor;
    content: '';
    display: inline-block;
    height: 14px;
    margin-right: 8px;
    width: 14px;
}

.prestaquote-submit.is-loading {
    cursor: wait;
    opacity: 0.8;
}

@keyframes prestaquote-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 575px) {
    .prestaquote-form {
        padding: 18px;
    }

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

    .prestaquote-choice-grid {
        grid-template-columns: 1fr;
    }

    .prestaquote-actions {
        flex-direction: column-reverse;
    }

    .prestaquote-actions .btn {
        width: 100%;
    }
}
