/* Smart Contact Forms — Frontend Styles */

.scf-wrapper {
    max-width: 540px;
    margin: 24px auto;
}

.scf-form {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.scf-field {
    margin-bottom: 20px;
}

.scf-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.scf-req {
    color: #ef4444;
    margin-left: 2px;
}

.scf-field input[type="text"],
.scf-field input[type="email"],
.scf-field input[type="tel"],
.scf-field input[type="number"],
.scf-field select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    color: #111827;
    background: #fafafa;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
    appearance: none;
}

.scf-field input:focus,
.scf-field select:focus {
    outline: none;
    border-color: #1a56db;
    box-shadow: 0 0 0 3px rgba(26,86,219,.15);
    background: #fff;
}

.scf-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 38px;
}

/* CAPTCHA */
.scf-captcha-field {
    background: #f0f4ff;
    border: 1.5px dashed #93c5fd;
    border-radius: 8px;
    padding: 14px 16px;
}

.scf-captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.scf-refresh-captcha {
    background: none;
    border: 1px solid #93c5fd;
    border-radius: 5px;
    color: #1a56db;
    cursor: pointer;
    font-size: 13px;
    padding: 6px 12px;
    transition: background .15s;
    white-space: nowrap;
}

.scf-refresh-captcha:hover {
    background: #dbeafe;
}

/* Button */
.scf-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: #1a56db;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
    margin-top: 8px;
}

.scf-btn:hover {
    background: #1e40af;
    transform: translateY(-1px);
}

.scf-btn:active {
    transform: translateY(0);
}

/* Messages */
.scf-messages {
    padding: 12px 16px;
    border-radius: 7px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.6;
}

.scf-messages.scf-success {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    color: #166534;
}

.scf-messages.scf-error {
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
    color: #991b1b;
}

.scf-messages ul {
    margin: 0;
    padding-left: 18px;
}
