/* âœ… TEXT FIELDS & TEXTAREAS â€” Global styling */
.apex-item-text,
.apex-item-textarea,
textarea,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="number"] {
    width: 100% !important;
    padding: 0.85rem 1rem !important;
    font-size: 1rem !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #fafafa !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
}

/* Focus effect â€” brand green border */
.apex-item-text:focus,
textarea:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    outline: none !important;
    border-color: #6fb576 !important; /* Your brand green */
    box-shadow: 0 0 0 3px rgba(111, 181, 118, 0.2) !important;
}

/* Hover effect */
.apex-item-text:hover:not(:focus),
input[type="text"]:hover:not(:focus),
input[type="password"]:hover:not(:focus),
input[type="email"]:hover:not(:focus) {
    border-color: #cbd5e1 !important;
}

/* âœ… LABELS â€” High specificity */
.t-Form-label,
.apex-item-label,
.form-item > label,
.col-form-label {
    display: block !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 0.5rem !important;
    font-size: 0.95rem !important;
    transition: color 0.2s ease !important;
    font-family: inherit !important;
}

/* âœ… BRAND BUTTONS â€” Primary (Next, Submit, etc.) */
/* âœ… BRAND BUTTONS â€” Primary (Next, Submit, Anchor Links) */
button.brand-button.brand-next,
input[type="submit"].brand-button.brand-next,
button.brand-button:not(.brand-prev),
input[type="submit"].brand-button:not(.brand-prev),
a.brand-button.brand-next,
a.brand-button:not(.brand-prev) {
    background-color: #6fb576 !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 1.25rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    flex: 1;
    min-width: 120px;
    text-align: center;
    display: inline-block; /* í ½í±ˆ Critical for <a> tags */
    text-decoration: none; /* í ½í±ˆ Remove underline */
    line-height: 1.2;      /* í ½í±ˆ Match button height */
}

/* Hover â€” darker green */
button.brand-button.brand-next:hover,
input[type="submit"].brand-button.brand-next:hover,
button.brand-button:not(.brand-prev):hover,
input[type="submit"].brand-button:not(.brand-prev):hover,
a.brand-button.brand-next:hover,
a.brand-button:not(.brand-prev):hover {
    background-color: #5a9a63 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

/* âœ… PREVIOUS BUTTON â€” Secondary style */
button.brand-button.brand-prev,
input[type="button"].brand-button.brand-prev,
a.brand-button.brand-prev {
    background-color: transparent !important;
    color: #6fb576 !important;
    border: 2px solid #6fb576 !important;
    padding: 0.75rem 1.25rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
    flex: 1;
    min-width: 120px;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    line-height: 1.2;
}

/* Hover â€” light green tint */
button.brand-button.brand-prev:hover,
input[type="button"].brand-button.brand-prev:hover,
a.brand-button.brand-prev:hover {
    background-color: rgba(111, 181, 118, 0.1) !important;
    transform: translateY(-1px);
}

/* Focus states for accessibility */
button.brand-button:focus,
input[type="button"].brand-button:focus,
input[type="submit"].brand-button:focus {
    outline: 2px solid #4a7a54 !important;
    outline-offset: 2px !important;
}

/* âœ… BUTTON CONTAINER â€” Equal width for Prev/Next */
.button-group-equal {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.button-group-equal .brand-button {
    flex: 1;
    min-width: 120px;
    text-align: center;
}

/*HTML Stylish BUtton*/

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #6fb576 0%, #051321 100%);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(111, 181, 118, 0.4);
}

.btn-secondary {
    background: white;
    color: #051321;
    border: 1px solid #051321;
}

.btn-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}


/* Optional: Stack buttons on mobile */
@media (max-width: 768px) {
    .button-group-equal {
        flex-direction: column;
        align-items: stretch;
    }
    .button-group-equal .brand-button {
        width: 100% !important;
        min-width: auto !important;
    }
}



/* âœ… SELECT LIST â€” Dropdowns */
.apex-item-select select,
select.apex-item-select,
select.selectlist,
.apex-item-select select:focus,
select.selectlist:focus {
    width: 100% !important;
    padding: 0.85rem 1rem !important;
    font-size: 1rem !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #fafafa !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    appearance: none; /* Remove default arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    cursor: pointer;
}

/* Focus state */
.apex-item-select select:focus,
select.selectlist:focus {
    outline: none !important;
    border-color: #6fb576 !important;
    box-shadow: 0 0 0 3px rgba(111, 181, 118, 0.2) !important;
}

/* Hover */
.apex-item-select select:hover:not(:focus),
select.selectlist:hover:not(:focus) {
    border-color: #cbd5e1 !important;
}

/* âœ… POPUP LOV */
.apex-item-popup-lov input.popup_lov,
input.popup_lov.apex-item-text {
    padding: 0.85rem 2.5rem 0.85rem 1rem !important; /* Extra right padding for icon */
    border-radius: 12px !important;
    background: #fafafa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E") no-repeat right 0.75rem center / 16px !important;
}

/* âœ… DATE PICKER */
.apex-item-datepicker input.hasDatepicker,
input.datepicker.apex-item-text {
    padding: 0.85rem 2.5rem 0.85rem 1rem !important; /* Extra padding for calendar icon */
    border-radius: 12px !important;
    background: #fafafa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3E%3C/svg%3E") no-repeat right 0.75rem center / 16px !important;
}

/* Common focus for popup & datepicker */
.apex-item-popup-lov input.popup_lov:focus,
input.popup_lov.apex-item-text:focus,
.apex-item-datepicker input.hasDatepicker:focus,
input.datepicker.apex-item-text:focus {
    outline: none !important;
    border-color: #6fb576 !important;
    box-shadow: 0 0 0 3px rgba(111, 181, 118, 0.2) !important;
}

/* Hover */
.apex-item-popup-lov input.popup_lov:hover:not(:focus),
input.popup_lov.apex-item-text:hover:not(:focus),
.apex-item-datepicker input.hasDatepicker:hover:not(:focus),
input.datepicker.apex-item-text:hover:not(:focus) {
    border-color: #cbd5e1 !important;
}

/* âœ… SHUTTLE (if used) */
.apex-item-shuttle select {
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #fafafa !important;
    padding: 0.75rem !important;
}

/* âœ… TEXTAREA (already covered, but reinforce) */
textarea.apex-item-textarea {
    min-height: 120px;
    line-height: 1.5;
}