/* ==========================================================================
   Custom Quote form — frontend (/quote)
   ========================================================================== */

/* Wrapper fills the content column; the form itself is centered within it. */
.customquote-wrapper {
    width: 100%;
    padding: 0 0 48px;
    box-sizing: border-box;
}

/* The form block is centered on the page; its content stays left-aligned. */
.customquote-form-container {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    box-sizing: border-box;
    text-align: left;
}

.dieline-proposal__title {
    font-family: "Poppins", "Inter", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1e293b;
    text-align: left;
    margin: 0 0 6px;
}

.dieline-proposal__subtitle {
    font-family: "Inter", sans-serif;
    font-size: 0.9375rem;
    line-height: 1.4;
    color: #64748b;
    text-align: left;
    margin: 0 0 28px;
}

/* Two-column responsive grid; --full spans the whole row. */
.dieline-proposal__form-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
}

.dieline-proposal__form-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dieline-proposal__form-group--full {
    grid-column: 1 / -1;
}

.cq-label {
    font-family: "Inter", sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    color: #1e293b;
    text-align: left;
    margin-bottom: 4px;
}

.cq-hint {
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
    color: #64748b;
    text-align: left;
    margin-bottom: 8px;
}

.customquote-form-container ._input,
.customquote-form-container input._input,
.customquote-form-container textarea._input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    font-family: "Inter", sans-serif;
    font-size: 0.9375rem;
    color: #1e293b;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    height: auto;
}

.customquote-form-container ._input:focus,
.customquote-form-container textarea._input:focus {
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.customquote-form-container textarea._input {
    resize: vertical;
    min-height: 120px;
}

/* Quantity is a short field — don't let it stretch the full row width. */
.customquote-form-container input#quantity {
    max-width: 260px;
}

.cq-error {
    display: block;
    min-height: 1em;
    margin-top: 4px;
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    text-align: left;
    color: #b91c1c;
}

/* Drop zone */
.createDropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 28px 16px;
    text-align: center;
    border: 1.5px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.createDropzone.is-dragover,
.createDropzone:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.createDropzone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.createDropzone__icon {
    font-size: 28px;
    line-height: 1;
    color: #64748b;
}

.cq-dropzone-text {
    margin: 0;
}

.cq-file-name {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1e293b;
    word-break: break-all;
}

/* Messages */
.dieline-proposal__messages {
    min-height: 1em;
    margin-top: 18px;
    font-family: "Inter", sans-serif;
    font-size: 0.9375rem;
    text-align: left;
}

.dieline-proposal__messages.cq-message-success {
    color: #15803d;
}

.dieline-proposal__messages.cq-message-error {
    color: #b91c1c;
}

/* Actions — button keeps the theme's primary color; we only size/space it. */
.dieline-proposal__actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 24px;
    padding: 0;
}

.dieline-proposal__actions .action.submit.primary {
    min-width: 220px;
    border-radius: 8px;
}

.dieline-proposal__actions .action.submit.primary[disabled],
.dieline-proposal__actions .action.submit.primary.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .dieline-proposal__form-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .customquote-form-container input#quantity {
        max-width: none;
    }

    .customquote-wrapper {
        padding-bottom: 32px;
    }

    .dieline-proposal__actions {
        justify-content: center;
    }

    .dieline-proposal__actions .action.submit.primary {
        width: 100%;
        min-width: 0;
    }
}
