/* Qwoted HubSpot Forms — Front-End Styles */

.qhf-form-wrapper {
    max-width: 560px;
    width: 100%;
}

.qhf-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qhf-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qhf-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    display: block;
}

.qhf-required {
    color: #e53e3e;
    margin-left: 3px;
}

.qhf-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    background-color: #fff;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    line-height: 1.4;
}

.qhf-input:focus {
    outline: none;
    border-color: #7c5dfa;
    box-shadow: 0 0 0 3px rgba(124, 93, 250, 0.15);
}

.qhf-input::placeholder {
    color: #aaa;
}

textarea.qhf-input {
    resize: vertical;
    min-height: 100px;
}

select.qhf-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.qhf-form-wrapper button.qhf-submit-btn,
.qhf-modal-inner button.qhf-submit-btn {
    width: 100%;
    padding: 14px;
    background-color: #7c5dfa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: inherit;
    line-height: 1.4;
    display: block;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    -webkit-user-select: auto;
    -moz-user-select: auto;
    user-select: auto;
}

.qhf-form-wrapper button.qhf-submit-btn:hover,
.qhf-modal-inner button.qhf-submit-btn:hover {
    background-color: #6845f0;
    color: #fff;
}

.qhf-form-wrapper button.qhf-submit-btn:active,
.qhf-modal-inner button.qhf-submit-btn:active {
    background-color: #5c38d9;
    color: #fff;
}

.qhf-form-wrapper button.qhf-submit-btn:disabled,
.qhf-modal-inner button.qhf-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.qhf-status {
    margin-top: 12px;
}

.qhf-status-msg {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    border: 1px solid transparent;
}

.qhf-status-msg.qhf-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.qhf-status-msg.qhf-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Inline card */
.qhf-inline-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 32px;
}

.qhf-inline-title {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
}

/* Modal styles */
.qhf-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.qhf-modal-overlay.active {
    display: flex;
}

.qhf-modal-inner {
    background: #fff;
    border-radius: 12px;
    padding: 40px 36px;
    max-width: 520px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.qhf-modal-title {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    padding-right: 32px;
}

.qhf-modal-inner .qhf-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    background-color: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.15s ease, background-color 0.15s ease;
    width: auto;
}

.qhf-modal-inner .qhf-modal-close:hover {
    color: #333;
    background-color: #f0f0f0;
}

/* Modal trigger button */
.qhf-modal-trigger {
    cursor: pointer;
}

/* Responsive */
@media (max-width: 480px) {
    .qhf-modal-inner {
        padding: 24px 20px;
        max-width: 100%;
        border-radius: 8px;
    }

    .qhf-modal-title {
        font-size: 18px;
    }

    .qhf-inline-card {
        padding: 20px 16px;
    }

    .qhf-form-wrapper {
        max-width: 100%;
    }
}
