.navbar,
.navbar * {
    color: #000 !important;
}
footer,
footer * {
    color: #000000 !important;
}

:root {
    --btncolor: #FD3C61;
    --apply_heading: #36415F;
    --header-bg: #ffffff;
    --footer-bg: #ffffff;
}

/* Form header styling */
.form-head {
    background-color: var(--apply_heading);
    color: white;
    font-weight: bold;
    padding: 15px;
    text-align: center;
}

/* Button styling */
.btn-primary,
.btn-submit {
    background-color: var(--btncolor);
    border-color: var(--btncolor);
}

.btn-primary:hover,
.btn-submit:hover {
    background-color: var(--btncolor);
    border-color: var(--btncolor);
    opacity: 0.9;
}

.btn-call {
    background-color: var(--btncolor);
    border-color: var(--btncolor);
    color: var(--btn-text-color, white);
}

/* Dynamic text color calculation for call button */
.btn-call,
.btn-call * {
    --btn-text-color: white; /* Default to white for most button colors */
}

/* For light colored buttons (yellow, light colors), use black text */
:root:has([style*="--btncolor: #FFE"]),
:root:has([style*="--btncolor: #FFF"]),
:root:has([style*="--btncolor: #EEE"]),
:root:has([style*="--btncolor: #DDD"]) {
    --btn-text-color: black;
}

/* Fallback: Use contrast-based approach with mix-blend-mode for better readability */
.navbar .btn-call .tracking_href,
.navbar .btn-call .trackingid,
.navbar .btn-call span,
.navbar .btn-call b {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* For very light button colors, override to use dark text */
.btn-call.light-button,
.btn-call.light-button * {
    color: black !important;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

/* Layout */
.content {
    padding-top: 100px;
}

/* Header styles */
.navbar {
    background-color: var(--header-bg);
}

/* Footer styles */
footer {
    background-color: var(--footer-bg);
}

footer p,
footer a {
    color: #000000 !important;
}

/* Background */
body {
    background: url('bg.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
}

/* Form container styling */
.custom-bg-top {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Main content area */
.masthead-minor {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.text-uppercase {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Logo sizing */
.navbar-brand img {
    max-height: 60px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand img {
        height: 40px;
        width: auto;
    }
}
