/**
 * RH Contact Form - Frontend Styles
 */

/* Form Container */
.rh-contact-form-wrapper {
    width: 100%;
}

.rh-contact-form {
    width: 100%;
    box-sizing: border-box;
}

/* Form Rows */
.rh-form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.rh-form-row-2 {
    gap: 20px;
}

/* Form Groups */
.rh-form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.rh-form-col-50 {
    flex: 1 1 calc(50% - 10px);
    min-width: 200px;
}

.rh-form-col-100 {
    flex: 1 1 100%;
}

/* Labels */
.rh-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333333;
    font-size: 14px;
}

.rh-form-label .required {
    color: #e74c3c;
}

.rh-section-label {
    font-weight: 600;
    font-size: 16px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
    margin-bottom: 0;
}

/* Input Fields */
.rh-form-input,
.rh-form-select,
.rh-form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.rh-form-input:focus,
.rh-form-select:focus,
.rh-form-textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.rh-form-input::placeholder,
.rh-form-textarea::placeholder {
    color: #999;
}

/* Select */
.rh-form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    cursor: pointer;
}

/* Textarea */
.rh-form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* Submit Button */
.rh-form-submit-wrapper {
    margin-top: 10px;
}

.rh-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    background-color: #0066cc;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.rh-form-submit:hover {
    background-color: #0052a3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.rh-form-submit:active {
    transform: translateY(0);
}

/* Messages */
.rh-form-message {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.rh-form-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.rh-form-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .rh-form-row-2 {
        flex-direction: column;
    }

    .rh-form-col-50 {
        flex: 1 1 100%;
    }

    .rh-form-submit {
        width: 100%;
    }
}