/* Custom Header Builder - Contact Form Styles */

.chb-contact-form-wrap {
    max-width: 480px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-sizing: border-box;
    direction: rtl;
    text-align: right;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #eee;
}

.chb-form-title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: #1a7d1a;
}

.chb-form-subtitle {
    margin: 0 0 24px;
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
}

.chb-form-message {
    display: none;
    margin-bottom: 15px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
}

.chb-form-message.chb-success {
    display: block;
    background: #e6f6e6;
    color: #1a7d1a;
    border: 1px solid #b8e3b8;
}

.chb-form-message.chb-error {
    display: block;
    background: #fdeaea;
    color: #c0392b;
    border: 1px solid #f3c1c1;
}

.chb-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.chb-form-row {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.chb-form-grid .chb-form-row {
    margin-bottom: 0;
}

.chb-form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333333;
}

.chb-form-field {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 15px;
    border: 1.5px solid #e2ede2;
    border-radius: 8px;
    background: #f8faf8;
    color: #1a1a1a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.chb-form-field::placeholder {
    color: #a8b8a8;
}

.chb-form-field:focus {
    outline: none;
    border-color: #2e9e2e;
    box-shadow: 0 0 0 3px rgba(46, 158, 46, 0.12);
}

.chb-select-wrap {
    position: relative;
}

.chb-form-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%232e9e2e' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    padding-left: 34px;
}

.chb-form-textarea {
    resize: vertical;
    min-height: 90px;
}

.chb-agreement-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 22px;
    cursor: pointer;
}

.chb-agreement-row input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: #2e9e2e;
    flex-shrink: 0;
}

.chb-agreement-text {
    font-size: 13px;
    color: #666666;
    line-height: 1.6;
}

.chb-agreement-text a {
    color: #2e9e2e;
    font-weight: 700;
    text-decoration: underline;
}

.chb-form-submit {
    width: 100%;
    padding: 14px 20px;
    background-color: #2e9e2e;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
    font-family: inherit;
}

.chb-form-submit:hover {
    background-color: #258225;
}

.chb-form-submit:active {
    transform: translateY(1px);
}

.chb-form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .chb-contact-form-wrap {
        padding: 22px;
        border-radius: 10px;
    }

    .chb-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .chb-form-grid .chb-form-row {
        margin-bottom: 18px;
    }
}
