/* ============================================================
   UNIVERSAL FORM WRAPPER
   Applies to both [secure_contact_form] and [consultation]
   ============================================================ */
.scf-form {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    box-sizing: border-box;
    margin-bottom: 40px;
    font-family: inherit;
}

/* Form Paragraph Spacing */
.scf-form p {
    margin-bottom: 18px;
}

/* Labels */
.scf-form label {
    font-weight: 600;
    margin-bottom: 6px;
    display: inline-block;
    color: var(--black);
    font-size: 15px;
}

/* Inputs + Textarea */
.scf-form input[type="text"],
.scf-form input[type="email"],
.scf-form textarea {
    width: 100%;
    padding: 12px 14px;
    margin-top: 4px;
    border-radius: 6px;
    border: 1px solid var(--black);
    background: var(--white);
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Focus State */
.scf-form input:focus,
.scf-form textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(80, 120, 72, 0.25);
    outline: none;
}

/* Textarea Size */
.scf-form textarea {
    height: 130px;
    resize: vertical;
}

/* Submit Button */
.scf-form button[type="submit"],
#scf-send-final,
#scf-cancel {
    padding: 12px 18px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.15s ease;
    font-weight: 600;
}

/* Primary Action (Review / Send) */
.scf-form button[type="submit"],
#scf-send-final {
    background: var(--green);
    color: var(--white);
}

.scf-form button[type="submit"]:hover,
#scf-send-final:hover {
    background: var(--deep-forest);
    transform: translateY(-1px);
}

/* Cancel Button */
#scf-cancel {
    background: var(--rust);
    color: var(--white);
    margin-left: 6px;
}

#scf-cancel:hover {
    background: rgba(160, 80, 60, 1);
    transform: translateY(-1px);
}

/* Success Message */
.scf-success-message {
    padding: 14px 18px;
    background: #e8f9ee;
    border: 1px solid #8cd4a4;
    color: #266d43;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 15px;
}

/* ============================================================
   CONFIRMATION MODAL (Overlay + Box)
   ============================================================ */

#scf-confirmation {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

/* Modal Inner Box */
#scf-confirmation > div {
    width: 100%;
    max-width: 520px;
    background: var(--white);
    border-radius: 10px;
    padding: 30px 34px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    animation: scfModalIn 0.25s ease;
}

@keyframes scfModalIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Modal Heading */
#scf-confirmation h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 22px;
    color: var(--black);
}

/* Confirmation Field Values */
#scf-confirmation-fields p {
    margin-bottom: 12px;
    line-height: 1.4;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 480px) {
    .scf-form {
        padding: 10px;
    }
    #scf-confirmation > div {
        padding: 20px 22px;
    }
}
