/* ===== Custom Button Widget ===== */
.elementor-widget-custom_button_widget {
    --cw-gc1: rgba(255, 255, 255, 0);
    --cw-gp1: 0%;
    --cw-gc2: rgba(255, 255, 255, 0.12);
    --cw-gp2: 100%;
    --cw-ga: 180deg;
}

.cw-btn-widget {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
    background-color: #3d8bcd;
    background-image: linear-gradient(
        var(--cw-ga, 180deg),
        var(--cw-gc1, rgba(255, 255, 255, 0)) var(--cw-gp1, 0%),
        var(--cw-gc2, rgba(255, 255, 255, 0.12)) var(--cw-gp2, 100%)
    );
    transition: background-color 0.3s ease;
}

.cw-btn-widget:hover {
    background-image: linear-gradient(
        var(--cw-ga, 180deg),
        var(--cw-gc1, rgba(255, 255, 255, 0)) var(--cw-gp1, 0%),
        var(--cw-gc2, rgba(255, 255, 255, 0.18)) var(--cw-gp2, 100%)
    );
}

.cw-btn-text {
    white-space: nowrap;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.cw-btn-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: #ffffff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    transition: background-color 0.3s ease;
}

.cw-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    transition: color 0.3s ease;
}

.cw-btn-icon svg {
    display: block;
    width: 18px;
    height: 18px;
    transition: stroke 0.3s ease;
}

/* ===== Inquiry Modal ===== */
.elementor-widget-custom_button_widget {
    --cw-iq-gc1: rgba(255, 255, 255, 0);
    --cw-iq-gp1: 0%;
    --cw-iq-gc2: rgba(255, 255, 255, 0.15);
    --cw-iq-gp2: 100%;
    --cw-iq-ga: 180deg;
    --cw-iq-max-width: 560px;
    --cw-iq-min-height: 0px;
    --cw-iq-margin: 0px;
    --cw-iq-outer-bg: #ffffff;
    --cw-iq-outer-padding: 10px;
    --cw-iq-outer-br: 0px;
    --cw-iq-dialog-br: 0px;
}

.cw-inquiry-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cw-inquiry-modal.is-active {
    display: flex;
}

.cw-inquiry-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
}

.cw-inquiry-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--cw-iq-max-width, 560px);
    animation: cw-modal-in 0.25s ease;
}

.cw-inquiry-wrap {
    width: 100%;
    background: var(--cw-iq-outer-bg, #ffffff);
    padding: var(--cw-iq-outer-padding, 10px);
    overflow: hidden;
}

.cw-inquiry-dialog {
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    background-color: #f4f4f4;
    padding: 40px;
    border-radius: var(--cw-iq-dialog-br, 0px);
    background-size: auto;
    background-position: top right;
    background-repeat: no-repeat;
    min-height: var(--cw-iq-min-height, 0px);
    margin: var(--cw-iq-margin, 0px);
}

@keyframes cw-modal-in {
    from { opacity: 0; transform: translateY(-16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.cw-inquiry-close {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 10;
    width: 34px;
    height: 34px;
    border-radius: 50% !important;
    border: 2px solid #222 !important;
    background: #fff !important;
    color: #222 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0 !important;
    line-height: 0;
    user-select: none;
    box-shadow: none !important;
    transition: transform 0.25s ease-out !important;
}

.cw-inquiry-close:hover {
    transform: rotate(90deg);
    background: #fff !important;
}

.cw-inquiry-close svg {
    width: 15px;
    height: 15px;
    display: block;
    pointer-events: none;
    stroke: #222;
}

.cw-inquiry-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 24px;
    line-height: 1.3;
}

.cw-inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cw-inquiry-field {
    width: 100%;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 14px;
    color: #999999;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
}

.cw-inquiry-field:focus {
    border-color: #3d8bcd;
}

.cw-inquiry-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.cw-inquiry-submit {
    border: none !important;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    color: #ffffff;
    background-color: #3d8bcd;
    background-image: linear-gradient(
        var(--cw-iq-ga, 180deg),
        var(--cw-iq-gc1, rgba(255, 255, 255, 0)) var(--cw-iq-gp1, 0%),
        var(--cw-iq-gc2, rgba(255, 255, 255, 0.15)) var(--cw-iq-gp2, 100%)
    ) !important;
    padding: 12px 28px;
    border-radius: 100px;
    transition: background-color 0.3s ease, background-image 0.3s ease;
}

.cw-inquiry-submit:hover {
    background-color: #3580be;
    background-image: linear-gradient(
        var(--cw-iq-ga, 180deg),
        var(--cw-iq-gc1, rgba(255, 255, 255, 0)) var(--cw-iq-gp1, 0%),
        var(--cw-iq-gc2, rgba(255, 255, 255, 0.15)) var(--cw-iq-gp2, 100%)
    ) !important;
}
