/* Custom font */
@font-face {
    font-family: 'GH Veneer';
    src: url('../fonts/gh-veneer-clean.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Custom styles for dynamically added classes */

/* Status message variants */
#status.processing {
    @apply bg-amber-50 text-amber-600;
    display: block !important;
}

#status.complete {
    @apply bg-green-50 text-green-600;
    display: block !important;
}

#status.error {
    @apply bg-red-50 text-red-600;
    display: block !important;
}

#status.info {
    @apply bg-blue-50 text-blue-500;
    display: block !important;
}

/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

/* Form styling with Noto Sans */
label,
input,
select,
option {
    font-family: 'Noto Sans', Arial, sans-serif;
}

input::placeholder {
    font-family: 'Noto Sans', Arial, sans-serif;
}

/* Style select placeholder */
select:invalid {
    color: #9CA3AF;
}

select option {
    color: #000;
}

/* Custom dropdown icon */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('../images/dropdown-icon.svg') !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px 16px !important;
    padding-right: 44px !important;
}

/* Ensure default arrows are hidden in all browsers */
select::-ms-expand {
    display: none;
}

/* Flowbite datepicker customization */
input[datepicker] {
    position: relative;
    background: url('../images/date-picker-icon.svg') no-repeat left 12px center;
    background-size: 20px 20px;
    padding-left: 44px !important;
}

/* Custom radio button styling - completely custom appearance */
.custom-radio {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #707070;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
    background-color: white;
    margin: 0;
}

.custom-radio:checked {
    border-color: #DF6420;
    background-color: #DF6420;
}

.custom-radio:checked::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.custom-radio:focus {
    box-shadow: 0 0 0 3px rgba(223, 100, 32, 0.2);
}

/* Cookie Banner */
#cookie-msg {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    max-width: 1200px;
    background-color: #464646;
    display: none;
    z-index: 9999;
    font-family: Arial, Helvetica, sans-serif;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#cookie-msg.show {
    display: block;
}

#cookie-msg .msg {
    padding: 20px 25px;
    text-align: center;
}

#cookie-msg .msg p {
    margin: 0 0 15px 0;
    color: white;
    font-size: 15px;
    line-height: 1.6;
}

#cookie-msg .msg .buttons {
    text-align: center;
}

#cookie-msg .msg a:not(.btn-accept) {
    color: white;
    text-decoration: underline;
    font-size: 15px;
    margin-right: 15px;
    display: inline-block;
}

#cookie-msg .msg a:not(.btn-accept):hover {
    color: #ddd;
}

#cookie-msg .msg .btn-accept {
    background-color: white;
    color: #666;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 3px;
    font-weight: bold;
    font-size: 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-block;
}

#cookie-msg .msg .btn-accept:hover {
    background-color: #f0f0f0;
    color: #333;
}

/* Responsive adjustments for cookie banner */
@media (max-width: 768px) {
    #cookie-msg {
        width: 90%;
        bottom: 10px;
    }

    #cookie-msg .msg {
        padding: 15px;
    }

    #cookie-msg .msg a:not(.btn-accept) {
        display: block;
        margin-bottom: 10px;
    }

    #cookie-msg .msg .btn-accept {
        width: 100%;
        text-align: center;
    }
}