/* Zilento Request to Quote Card & Modal Styles */
.zilento-quote-widget-wrapper {
    display: block;
    width: 100%;
}

/* Pale Mint Card UI Box */
.zilento-quote-card {
    background-color: #f8fbfb;
    border: 1px solid #e2ece8;
    border-radius: 8px;
    padding: 36px 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
}

.zilento-quote-card__title {
    font-size: 26px;
    font-weight: 700;
    color: #0b5c43;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.zilento-quote-card__desc {
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
    margin: 0 0 24px 0;
}

.zilento-quote-card__buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    width: 100%;
}

/* Action Buttons */
.zilento-quote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    box-sizing: border-box;
    line-height: 1.2;
}

/* Primary Solid Green Button */
.zilento-quote-btn--primary {
    background-color: #2db373;
    color: #ffffff;
    border: 2px solid #2db373;
}

.zilento-quote-btn--primary:hover {
    background-color: #249760;
    border-color: #249760;
    color: #ffffff;
}

/* Secondary Outlined Button ("RING OSS") */
.zilento-quote-btn--secondary {
    background-color: transparent;
    color: #2db373;
    border: 2px solid #2db373;
}

.zilento-quote-btn--secondary:hover {
    background-color: #2db373;
    color: #ffffff;
}

/* Modal Popup Overlay */
.zilento-quote-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.zilento-quote-modal.zilento-modal-open {
    opacity: 1;
    visibility: visible;
}

.zilento-quote-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
}

.zilento-quote-modal__dialog {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 780px;
    margin: 20px auto;
    box-sizing: border-box;
}

.zilento-quote-modal__content {
    background-color: #ffffff;
    padding: 36px 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    border: 1px solid #e5e7eb;
}

.zilento-quote-modal__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s ease;
}

.zilento-quote-modal__close:hover {
    color: #111827;
}

.zilento-quote-modal__title {
    margin: 0 0 20px 0;
    padding-right: 36px;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    text-align: left;
    line-height: 1.3;
}

/* Form Structure & Desktop 3-Column Grid */
.zilento-quote-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.zilento-quote-form button {
    border: transparent;
}

.zilento-quote-form__row--top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.zilento-quote-form__field {
    display: flex;
    flex-direction: column;
}

.zilento-quote-form__label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.zilento-quote-form__label .required {
    color: #ef4444;
}

.zilento-quote-form__input,
.zilento-quote-form__textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    color: #1f2937;
    background-color: #f9fafb;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.zilento-quote-form__input:focus,
.zilento-quote-form__textarea:focus {
    border-color: #2db373;
    background-color: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 179, 115, 0.15);
}

.zilento-quote-form__action {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.zilento-quote-form__submit {
    padding: 12px 32px;
    background-color: #2db373;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.zilento-quote-form__submit:hover {
    background-color: #249760;
}

.zilento-quote-form__notice {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
}

.zilento-quote-form__notice.zilento-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.zilento-quote-form__notice.zilento-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Live Editor Preview Mode */
.zilento-quote-modal--editor-preview {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    opacity: 1;
    visibility: visible;
    margin-top: 20px;
}

.zilento-quote-modal--editor-preview .zilento-quote-modal__dialog {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

@media (max-width: 768px) {
    .zilento-quote-card {
        padding: 24px 20px;
    }
    .zilento-quote-card__buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }
    .zilento-quote-btn {
        width: 100%;
    }
    .zilento-quote-form__row--top {
        grid-template-columns: 1fr;
    }
    .zilento-quote-modal__content {
        padding: 24px 20px;
    }
    .zilento-quote-modal__title {
        font-size: 18px;
        padding-right: 36px;
    }
}
