.bg-form {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 900px
}

.form-label {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.form-control {
    background: #d4af3717 !important;
    border: 1px solid #141414 !important;
    color: #ffffff;
    padding: 0.75rem;
    padding-bottom: 100px;
    font-size: 10rem;
    width: 100%;
    border-radius: 8px;
}

.form-control:focus {
    background: #0a0a0a;
    border-color: #2563eb;
    color: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
    color: #666;
}

#inputmessage {
    resize: none;
    background: ##daf3717 !important;
}


/* Mobile First Approach - Base styles are for mobile */

/* Small devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .form-label {
        font-size: 1rem;
    }

    .form-control {
        padding: 0.875rem;
        font-size: 1.05rem;
    }
}

/* Medium devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .form-label {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .form-row {
        display: flex;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .form-row .form-group {
        flex: 1;
    }
}

/* Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .form-control {
        padding: 1rem;
        font-size: 1.1rem;
    }
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .form-label {
        font-size: 0.85rem;
    }

    .form-control {
        padding: 0.625rem;
        font-size: 0.95rem;
    }
}

/* For very small screens (less than 375px) */
@media (max-width: 374.98px) {

    .form-label {
        font-size: 0.8rem;
    }

    .form-control {
        padding: 0.5rem;
        font-size: 0.9rem;
        width: 100%;
    }
}

/* Print styles */
@media print {

    .form-label {
        color: black;
    }

    .form-control {
        background: white;
        border: 1px solid #ccc;
        color: black;
    }
}




/* Custom styling for search bar form */
.search-bar {
    background-color: #000 !important;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 10px 4px 20px rgba(255, 255, 255, 0.871);
    margin-bottom: 30px;
    align-items: center;
    width: 100%;
    height: auto;

}

.search-bar-container {
    padding: 20px 0;
    border-radius: 22px;
    margin-top: 200px;
    display: flex;
    align-items: center;

}


/* Input field styling */
.search-bar .form-control[type="text"] {
    background-color: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    color: #555233 !important;
    font-size: 15px;
    font-weight: 400;
    padding: 0.75rem 1rem;
    height: 52px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-bar .form-control[type="text"]:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

.search-bar .form-control[type="text"]:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #f6e03b;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.search-bar .form-control[type="text"]::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* Select dropdown styling */
.search-bar .form-control {
    background-color: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    color: #334155;
    font-size: 15px;
    font-weight: 500;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    height: 52px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
}

.search-bar .form-control:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

.search-bar .form-control:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

/* Custom styling for dropdown options */
.search-bar .form-control option {
    padding: 12px;
    background-color: white;
    color: #334155;
    font-size: 14px;
    font-weight: 400;
}

.search-bar .form-control option:hover {
    background-color: #f1f5f9;
}

.search-bar .form-control option:checked,
.search-bar .form-control option:active {
    background-color: #3b82f6;
    color: white;
    font-weight: 500;
}

/* Search button styling */
.search-bar .btn-block {
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%) !important;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    height: 52px;
    width: 100%;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-bar .btn-block:hover {
    background: linear-gradient(135deg, #E6BE8A 0%, #D4AF37 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.search-bar .btn-block:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.search-bar .btn-block:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.3);
}


/* Disabled state */
.search-bar .form-control:disabled {
    background-color: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .search-bar {
        background-color: #1e293b;
        border-color: #334155;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .search-bar .form-control[type="text"],
    .search-bar .form-control {
        background-color: #0f172a;
        border-color: #334155;
        color: #e2e8f0;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    }

    .search-bar .form-control[type="text"]:hover,
    .search-bar .form-control:hover {
        background-color: #1e293b;
        border-color: #475569;
    }

    .search-bar .form-control[type="text"]:focus,
    .search-bar .form-control:focus {
        background-color: #0f172a;
        border-color: #60a5fa;
        box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.2);
    }

    .search-bar .form-control[type="text"]::placeholder {
        color: #64748b;
    }

    .search-bar .form-control option {
        background-color: #1e293b;
        color: #e2e8f0;
    }

    .search-bar .btn {
        background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    }
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .search-bar {
        padding: 16px;
        border-radius: 10px;
    }

    .search-bar .form-control[type="text"],
    .search-bar .form-control,
    .search-bar .btn {
        font-size: 16px;
        /* Prevents iOS zoom on focus */
        height: 48px;
    }

    .search-bar .form-control[type="text"],
    .search-bar .form-control {
        padding: 0.875rem 1rem;
    }
}

/* For larger screens */
@media (min-width: 768px) {

    .search-bar .col-md-2 .form-control,
    .search-bar .col-md-2 .btn {
        width: 100%;
    }
}

@media (min-width: 992px) {
    .search-bar .col-md-3 .form-control {
        width: 100%;
    }
}

/* Animation for form interaction */
@keyframes searchBarFocus {
    0% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    50% {
        box-shadow: 0 6px 25px rgba(59, 130, 246, 0.15);
    }

    100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }
}

.search-bar:has(.form-control:focus) {
    animation: searchBarFocus 0.5s ease;
}