/* Seacoast Pricing Inquiry Add-on — front-end styles */

/* --- "Request a Quote" trigger (shown after the results) --- */
.spci-cta {
    margin-top: 20px;
    text-align: center;
}

.spci-open {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #1c7ec4;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.spci-open:hover {
    background: #156aa6;
}

/* --- Popup modal --- */
.spci-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.spci-modal__overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 28, 41, 0.55);
}

.spci-modal__dialog {
    position: relative;
    z-index: 1;
    width: 640px;
    max-width: 100%;
    margin: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    animation: spci-pop 0.18s ease-out;
}

@keyframes spci-pop {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.spci-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 24px;
    line-height: 1;
    color: #5a6b78;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    z-index: 2;
}

.spci-modal__close:hover {
    background: #eef2f5;
    color: #0b3d5c;
}

/* Prevent background scroll while the popup is open. */
body.spci-modal-open {
    overflow: hidden;
}

.spci-inquiry {
    padding: 28px;
    background: #fbfcfd;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
}

.spci-inquiry__title {
    margin: 0 0 4px;
    font-size: 20px;
    color: #0b3d5c;
}

.spci-inquiry__intro {
    margin: 0 0 18px;
    font-size: 14px;
    color: #667;
}

.spci-inquiry__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
}

.spci-field {
    display: flex;
    flex-direction: column;
}

.spci-field--full {
    grid-column: 1 / -1;
}

.spci-field label {
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #33404a;
}

.spci-req {
    color: #d9342b;
}

.spci-field input,
.spci-field textarea {
    width: 100%;
    padding: 9px 11px;
    font-size: 14px;
    border: 1px solid #cfd6dd;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
    font-family: inherit;
    color: #222;
}

.spci-field input:focus,
.spci-field textarea:focus {
    outline: none;
    border-color: #1c7ec4;
    box-shadow: 0 0 0 2px rgba(28, 126, 196, 0.15);
}

.spci-field textarea {
    resize: vertical;
    min-height: 64px;
}

.spci-invalid {
    border-color: #d9342b !important;
    background: #fff6f5 !important;
}

.spci-inquiry__actions {
    margin-top: 18px;
}

.spci-submit {
    display: inline-block;
    padding: 11px 26px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #1c7ec4;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.spci-submit:hover {
    background: #156aa6;
}

.spci-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.spci-message {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.5;
    min-height: 1px;
}

.spci-message--error {
    padding: 10px 14px;
    color: #a11a12;
    background: #fdecea;
    border: 1px solid #f5c6c2;
    border-radius: 6px;
}

.spci-message--success {
    padding: 10px 14px;
    color: #1e6b34;
    background: #e8f6ec;
    border: 1px solid #b7e1c3;
    border-radius: 6px;
}

@media (max-width: 600px) {
    .spci-inquiry__grid {
        grid-template-columns: 1fr;
    }
}
