/*
  Simple Contact Form - Stylesheet
  File: contact-form.css
  Place this file in the same folder as contact-form.php
*/

/* Wrapper */
.scf-wrapper {
    max-width: 580px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 15px;
    color: #1a1a1a;
}

/* Success message */
.scf-success {
    background: #eaf3de;
    border: 1px solid #639922;
    border-radius: 8px;
    padding: 14px 18px;
    color: #3b6d11;
    font-size: 15px;
}

/* Error list */
.scf-errors {
    background: #fcebeb;
    border: 1px solid #e24b4a;
    border-radius: 8px;
    padding: 12px 18px;
    color: #a32d2d;
    margin-bottom: 1.25rem;
}

.scf-errors ul {
    margin: 0;
    padding-left: 1.2rem;
}

.scf-errors li {
    margin: 4px 0;
    font-size: 14px;
}

/* Two-column row */
.scf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 480px) {
    .scf-row {
        grid-template-columns: 1fr;
    }
}

/* Field group */
.scf-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 16px;
}

.scf-field label {
    font-size: 13px;
    font-weight: 500;
    color: #444;
}

/* Required asterisk */
.scf-req {
    color: #d85a30;
    margin-left: 2px;
}

/* Inputs, textarea */
.scf-form input[type="text"],
.scf-form input[type="email"],
.scf-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 13px;
    border: 1px solid #ccc;
    border-radius: 7px;
    font-size: 14px;
    font-family: inherit;
    color: #1a1a1a;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    appearance: none;
}

.scf-form input:focus,
.scf-form textarea:focus {
    outline: none;
    border-color: #378add;
    box-shadow: 0 0 0 3px rgba(55, 138, 221, 0.15);
}

.scf-form textarea {
    resize: vertical;
    min-height: 130px;
}

/* Submit button */
.scf-form button[type="submit"] {
    display: inline-block;
    padding: 10px 28px;
    background: #185fa5;
    color: #e6f1fb;
    border: none;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}

.scf-form button[type="submit"]:hover {
    background: #0c447c;
}

.scf-form button[type="submit"]:active {
    transform: scale(0.98);
}

/* Honeypot: completely hidden from real users */
.scf-hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}
