/* Contact Form with hCaptcha — Frontend Styles */

.cfh-wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 2rem 2.5rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-family: 'Sarabun', 'Noto Sans Thai', sans-serif;
}

.cfh-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a3a6b;
    margin: 0 0 0.25rem;
}

.cfh-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 1.5rem;
}

.cfh-field {
    margin-bottom: 1.1rem;
}

.cfh-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.cfh-req {
    color: #c0392b;
    margin-left: 2px;
}

.cfh-field input[type="text"],
.cfh-field input[type="email"],
.cfh-field select,
.cfh-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1.5px solid #c5cfd8;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #333;
    background: #fff;
    transition: border-color 0.15s;
    font-family: inherit;
}

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

.cfh-field select {
    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 d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.cfh-field textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}

/* hCaptcha container */
.cfh-field .h-captcha {
    margin-top: 4px;
}

/* Submit button */
.cfh-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #1a3a6b;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    font-family: inherit;
    letter-spacing: 0.03em;
}

.cfh-btn:hover {
    background: #14305a;
}

.cfh-btn:active {
    transform: scale(0.99);
}

/* Alert messages */
.cfh-alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.cfh-success {
    background: #eafaf1;
    color: #1e8449;
    border: 1px solid #a9dfbf;
}

.cfh-error {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f1aeb5;
}

/* Responsive */
@media (max-width: 600px) {
    .cfh-wrap {
        padding: 1.25rem 1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}
