/* Custom styles to fix header layout and logo size */

/* Align Elementor Header/Footer Builder menu to the right side */
.hfe-nav-menu__layout-horizontal,
.hfe-nav-menu {
    justify-content: flex-end !important;
    display: flex !important;
    width: 100% !important;
}
ul.hfe-nav-menu {
    margin-left: auto !important;
    margin-right: 0 !important;
}

/* Align Colibri WP theme menu to the right side */
.h-menu,
.h-navigation_outer .h-menu {
    justify-content: flex-end !important;
    display: flex !important;
    width: 100% !important;
}

/* Default logo size normalization */
img.h-logo__image,
img.logo-image,
img.logo-alt-image,
img[class*="logo"] {
    max-height: 55px !important;
    height: 55px !important;
    width: auto !important;
    object-fit: contain !important;
    transition: all 0.3s ease-in-out !important;
}

/* Restrict logo size on scroll / sticky header */
/* Restrict logo size on scroll / sticky header */
.h-navigation_sticky img.h-logo__image,
.h-navigation_sticky img.logo-image,
.h-navigation_sticky img.logo-alt-image,
.h-navigation_sticky img[class*="logo"] {
    max-height: 40px !important;
    height: 40px !important;
    width: auto !important;
}

/* ==========================================================================
   JOIN US FORM CUSTOM PREMIUM STYLES
   ========================================================================== */
.harjoinform {
    max-width: 800px !important;
    margin: 40px auto !important;
    padding: 40px !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #eaeaea !important;
    font-family: inherit !important;
}

.harjoinform .form-group {
    display: grid !important;
    grid-template-columns: repeat(12, 1fr) !important;
    gap: 20px !important;
    margin-bottom: 20px !important;
}

.harjoinform .col-md-6 {
    grid-column: span 6 !important;
}

.harjoinform .col-md-12 {
    grid-column: span 12 !important;
}

.harjoinform .col-md-3 {
    grid-column: span 3 !important;
}

/* Form Labels */
.harjoinform label {
    display: flex !important;
    flex-direction: column !important;
    font-weight: 600 !important;
    color: #2d3748 !important;
    font-size: 14px !important;
    margin-bottom: 0 !important;
    width: 100% !important;
}

/* Text Inputs, Dates, Selects, and Textareas */
.harjoinform input[type="text"],
.harjoinform input[type="date"],
.harjoinform select,
.harjoinform textarea {
    margin-top: 8px !important;
    padding: 12px 16px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    color: #1a202c !important;
    background-color: #f8fafc !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: all 0.25s ease-in-out !important;
    font-family: inherit !important;
}

/* Focus state */
.harjoinform input[type="text"]:focus,
.harjoinform input[type="date"]:focus,
.harjoinform select:focus,
.harjoinform textarea:focus {
    outline: none !important;
    border-color: #c92c2c !important; /* Premium crimson matching button logo */
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(201, 44, 44, 0.15) !important;
}

/* Read-only inputs (membership, year) */
.harjoinform input[readonly] {
    background-color: #edf2f7 !important;
    color: #718096 !important;
    cursor: not-allowed !important;
    border-color: #cbd5e0 !important;
}

/* Textareas custom height */
.harjoinform textarea {
    height: 140px !important;
    resize: vertical !important;
}

/* Radio buttons and list styling */
.harjoinform .wpcf7-radio {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    margin-top: 10px !important;
}

.harjoinform .wpcf7-list-item {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
}

.harjoinform .wpcf7-list-item-label {
    font-weight: 500 !important;
    color: #4a5568 !important;
    margin-left: 8px !important;
    font-size: 15px !important;
}

.harjoinform input[type="radio"],
.harjoinform input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: #c92c2c !important;
    cursor: pointer !important;
    margin: 0 !important;
}

/* Terms and Conditions acceptance area */
.harjoinform .wpcf7-acceptance {
    display: block !important;
    margin: 25px 0 15px 0 !important;
    text-align: center !important;
}

.harjoinform .wpcf7-acceptance label {
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    font-weight: 500 !important;
    color: #4a5568 !important;
    cursor: pointer !important;
}

.harjoinform .wpcf7-acceptance input[type="checkbox"] {
    margin-right: 10px !important;
}

/* Submit Button */
.harjoinform input[type="submit"] {
    display: block !important;
    width: 100% !important;
    max-width: 320px !important;
    margin: 15px auto 0 auto !important;
    padding: 14px 28px !important;
    background-color: #c92c2c !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(201, 44, 44, 0.25) !important;
    transition: all 0.25s ease-in-out !important;
}

.harjoinform input[type="submit"]:hover {
    background-color: #a72323 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(201, 44, 44, 0.35) !important;
}

.harjoinform input[type="submit"]:active {
    transform: translateY(0) !important;
    box-shadow: 0 4px 10px rgba(201, 44, 44, 0.2) !important;
}

/* Validation errors styling */
.harjoinform span.wpcf7-not-valid-tip {
    color: #e53e3e !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin-top: 5px !important;
}

.harjoinform .wpcf7-response-output {
    margin: 20px 0 0 0 !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: center !important;
}

/* Grid layout adjustments for mobile */
@media (max-width: 768px) {
    .harjoinform {
        padding: 24px !important;
        margin: 20px auto !important;
    }
    .harjoinform .form-group {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .harjoinform .col-md-6,
    .harjoinform .col-md-12,
    .harjoinform .col-md-3 {
        grid-column: span 1 / span 1 !important;
    }
    .harjoinform .col-md-3:empty {
        display: none !important;
    }
}

