/* ========== PAGE WRAPPER ========== */

.quote-page {
    padding: 60px 0 80px;
    background: #f3f4f6;
}

.quote-card {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    padding: 32px 32px 30px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
}

/* ========== HEADER ========== */

.quote-header {
    text-align: center;
    margin-bottom: 28px;
}

.quote-title {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 8px;
    color: #111827;
}

.quote-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
}

/* ========== FORM LAYOUT ========== */

.quote-form {
    margin-top: 18px;
}

.quote-field-row {
    margin-bottom: 20px;
}

.quote-label {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    display: block;
    margin-bottom: 6px;
}

.quote-label span {
    color: #ef4444;
}

/* Input wrapper with counter */

.quote-input-wrapper {
    position: relative;
}

/* Inputs + Textareas (Unified Styling) */

.quote-input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 11px 16px;
    font-size: 14px;
    outline: none;
    color: #111827;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.quote-input::placeholder {
    color: #9ca3af;
}

.quote-input:focus {
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.18);
}

/* character counter */

.char-counter {
    position: absolute;
    right: 14px;
    bottom: 8px;
    font-size: 11px;
    color: #9ca3af;
}

/* ========== ATTACHMENTS BOX ========== */

.attachments-box {
    margin-top: 10px;
    padding: 18px;
    border-radius: 16px;
    border: 1px dashed #d1d5db;
    background: #f9fafb;
}

.attachment-upload {
    display: block;
}

.upload-label {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
    display: block;
}

.upload-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    font-size: 14px;
    cursor: pointer;
}

.upload-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
}

/* ========== FOOTER BUTTON ========== */

.quote-footer-row {
    margin-top: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-generate-btn {
    border: none;
    border-radius: 999px;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    animation: quotePulse 2.4s ease-in-out infinite;
}

.quote-generate-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 34px rgba(99, 102, 241, 0.55);
    opacity: 0.97;
}

@keyframes quotePulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 10px 28px rgba(99, 102, 241, 0.4);
    }
    50% {
        transform: translateY(-2px) scale(1.03);
        box-shadow: 0 16px 36px rgba(99, 102, 241, 0.55);
    }
}

/* ========== SUCCESS POPUP (CENTER MODAL) ========== */

.quote-success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(2px);
}

.quote-success-overlay.show {
    display: flex;
}

.quote-success-box {
    width: 90%;
    max-width: 420px;
    background: #ffffff;
    padding: 28px 26px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    transform: scale(0.8);
    opacity: 0;
    animation: popupShow 0.35s ease-out forwards;
}

@keyframes popupShow {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-icon {
    font-size: 48px;
    margin-bottom: 10px;
    color: #16a34a;
}

.popup-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.popup-message {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 18px;
}

.popup-close-btn {
    background: #FF8804;
    color: #ffffff;
    padding: 10px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(255, 136, 4, 0.35);
    transition: 0.25s ease;
}

.popup-close-btn:hover {
    background: #e06f00;
    transform: translateY(-2px);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    .quote-card {
        padding: 24px 18px 24px;
    }

    .quote-title {
        font-size: 28px;
    }

    .quote-generate-btn {
        width: 100%;
        text-align: center;
    }
}
