@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

.code-promo-modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 9999;
    font-family: 'Lato', sans-serif;
}

.code-promo-modal[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.code-promo-modal__overlay {
    position: absolute;
    inset: 0;
}

.code-promo-modal__dialog {
    position: relative;
    background: #fff;
    width: min(90vw, 590px);
    border-radius: 20px;
    padding: 48px 40px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    z-index: 1;
    text-align: left;
}

.code-promo-modal__dialog h2 {
    font-size: 32px;
    font-weight: 400;
    margin: 0 0 20px;
    color: #000;
    line-height: 1.2;
}

.code-promo-modal__close {
    position: absolute;
    top: 24px;
    right: 24px;
    border: none;
    background: transparent;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    color: #000;
    font-weight: 400;
    padding: 0;
    width: 32px;
    height: 32px;
}

.code-promo-modal__description {
    margin: 0 0 28px;
    color: #666;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
}

.code-promo-modal__form {
    display: flex;
    gap: 12px;
    flex-direction: column;
    margin-bottom: 0;
}

.code-promo-modal__form-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.code-promo-modal__label {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin-bottom: 0;
}

.code-promo-modal__form input {
    flex: 1;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    font-size: 15px;
    text-transform: none;
    letter-spacing: normal;
    background: #fff;
    color: #000;
}

.code-promo-modal__form input::placeholder {
    color: #9ca3af;
    font-size: 15px;
    font-weight: 400;
}

.code-promo-modal__form input:focus {
    outline: none;
    border-color: #000;
}

.code-promo-modal__submit {
    background: #000;
    color: #fff;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.code-promo-modal__submit:hover {
    opacity: 0.9;
}

.code-promo-modal__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.code-promo-modal__feedback {
    margin-top: 8px;
    font-weight: 600;
}

.code-promo-modal__feedback:empty {
    display: none;
}

.code-promo-modal__feedback.is-error {
    color: #dc2626;
}

.code-promo-modal__feedback.is-success {
    color: #059669;
}

.code-promo-modal__areas {
    margin-top: 20px;
    text-align: left;
}

.code-promo-modal__areas-title {
    margin: 0 0 8px;
    font-weight: 600;
}

.code-promo-modal__area-select {
    width: 100%;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    padding: 12px;
    font-size: 15px;
    background: #f9fafb;
    color: #111827;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.code-promo-modal__area-select:focus {
    outline: none;
    border-color: #111827;
    background: #fff;
}

.code-promo-trigger {
    border: 1px solid #333;
    padding: 10px 20px;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease, border-color 0.2s ease;
    font-weight: 500;
    white-space: nowrap;
    font-family: 'Lato', sans-serif;
}

.code-promo-trigger:hover {
    background: #f9fafb;
    border-color: #111;
    color: #333;
}

.code-promo-trigger i {
    font-size: 18px;
    line-height: 1;
}

body.code-promo-modal-open {
    overflow: hidden;
}
