﻿/*custom inputs*/
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea, select {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, input[type="date"]:focus, textarea:focus, select:focus {
        border-color: #3872FA;
        box-shadow: 0 0 5px rgba(56, 114, 250, 0.5);
        outline: none;
    }

    input[type="text"].error,
    input[type="email"].error,
    input[type="tel"].error,
    input[type="date"].error,
    textarea.error,
    select.error,
    input[type="text"].error:focus,
    input[type="email"].error:focus,
    input[type="tel"].error:focus,
    input[type="date"].error:focus,
    textarea.error:focus,
    select.error:focus {
        border-color: #e80e12 !important;
        box-shadow: 0 0 5px rgba(232, 14, 18, 0.5) !important;
    }

/*.searchInput {
    font-size: 20px !important;
}*/

/*Checkboxes and Radio buttons*/

/* Reset */
input[type="checkbox"],
input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Custom Checkbox */

.custom-checkbox,
.custom-radio {
    width: fit-content;
    display: flex;
    font-size: 12px;
    align-items: center;
    cursor: pointer;
    margin: 8px 0;
    position: relative;
    font-family: Arial, sans-serif;
    user-select: none;
    color: #333;
}

.cabin-class .custom-checkbox,
.cabin-class .custom-radio {
    font-size: 16px;
}

:dir(ltr) .custom-checkbox,
:dir(ltr) .custom-radio {
    padding-left: 30px;
}

:dir(rtl) .custom-checkbox,
:dir(rtl) .custom-radio {
    padding-right: 30px;
}

:dir(ltr) .checkmark,
:dir(ltr) .radiomark {
    left: 0;
}

:dir(rtl) .checkmark,
:dir(rtl) .radiomark {
    right: 0;
}

.checkmark,
.radiomark {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: #fcfcfc;
    border: 2px solid #ccc;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.radiomark {
    border-radius: 50%;
}

/* When checked */
input[type="checkbox"]:checked + .checkmark {
    background-color: #3872FA;
    border-color: #3872FA;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.00039 10.7998L3.20039 7.9998L2.26606 8.93314L6.00039 12.6668L14.0004 4.6668L13.0671 3.73347L6.00039 10.7998Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

input[type="radio"]:checked + .radiomark {
    border-color: #3872FA;
    background-color: #3872FA;
}

    input[type="radio"]:checked + .radiomark::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 8px;
        height: 8px;
        background: white;
        border-radius: 50%;
        transform: translate(-50%, -50%);
    }

/* Focus Styles */
input[type="checkbox"]:focus + .checkmark,
input[type="radio"]:focus + .radiomark {
    box-shadow: 0 0 0 2px rgba(56, 114, 250, 0.3);
    border-color: #3872FA;
}

/**/
:dir(rtl) input[type="text"],
:dir(rtl) input[type="email"],
:dir(rtl) input[type="tel"],
:dir(rtl) input[type="date"],
:dir(rtl) textarea,
:dir(rtl) select {
    line-height: 1.5;
}
