.hcf-contact-form-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

.hcf-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hcf-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.hcf-form-group label {
    font-weight: 600;
    color: #222D3F;
}

.hcf-required {
    color: #e74c3c;
}

.hcf-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #222D3F;
    transition: border-color 0.3s;
    background: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.hcf-form-control::placeholder {
    color: #222D3F;
    opacity: 0.8;
}

.hcf-form-control:focus {
    outline: none;
    border-color: var(--first-color, #47694c);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(8, 89, 247, 0.1);
}

textarea.hcf-form-control {
    resize: vertical;
}

/* File Upload Field Styling */
input[type="file"].hcf-form-control {
    padding: 8px 10px;
    background: #ffffff;
}

.hcf-form-submit {
    margin-top: 10px;
    text-align: right;
}

.hcf-alert {
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 4px;
    font-weight: 500;
}

.hcf-alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.hcf-alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* =========================================
   REUSABLE LAYOUT GRID SYSTEM
========================================= */

.hcf-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.hcf-col {
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
}

.hcf-full-width {
    flex: 1 1 100%;
    width: 100%;
}

/* Mobile responsive stacking */
@media (max-width: 767px) {
    .hcf-col {
        flex: 1 1 100%;
    }
}

/* Custom Button Styling */
.hcf-submit-button {
    background: var(--first-color, #47694c);
    color: #ffffff !important;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: scale(1) translateZ(0);
    -webkit-font-smoothing: subpixel-antialiased;
}

.hcf-submit-button:hover,
.hcf-submit-button:focus {
    background-color: #212121 !important;
    transform: scale(1.04) translateZ(0);
}

/* Compact layout specific overrides */
.hcf-layout-compact {
    padding: 0;
    box-shadow: none;
    border: none;
    background: transparent;
}

.hcf-layout-compact label {
    display: none;
}

/* =========================================
   SMART FORM TABS
========================================= */
.hcf-smart-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    background: transparent;
    padding: 6px;
    border-radius: 8px;
}

.hcf-smart-tab {
    flex: 1;
    background: #f0f0f0;
    border: none;
    padding: 12px 15px;
    border-radius: 6px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
}

.hcf-smart-tab:hover {
    background: #e4e4e4;
    color: #222D3F;
}

.hcf-smart-tab.active {
    background: var(--first-color, #47694c);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.hcf-smart-tab-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: hcfFadeIn 0.3s ease;
}

@keyframes hcfFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 500px) {
    .hcf-smart-tabs {
        flex-direction: column;
    }
}
