@import url("https://fonts.googleapis.com/css2?family=El+Messiri:wght@500;600;700&display=swap");

:root {
    --primary-color: #d1ac3f;
    --secondary-color: #ff3d00;
    --black-color: #333123;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "El Messiri", sans-serif;
    overflow-x: hidden;
    position: relative;
}

body::-webkit-scrollbar {
    width: 6px;
}

body::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
}

body::-webkit-scrollbar-track {
    background-color: #dfdfdf;
}

/* Global styles */
button {
    outline: none;
    border: none;
}

input,
select {
    width: 100%;
    height: 45px;
    padding-right: 10px;
    text-align: start;
    font-size: 1rem;
    color: #363636;
    padding: 0 10px;
    border: none;
    outline: none;
    border-radius: 4px;
}

select::-ms-expand {
    display: none;
}

select option {
    background-color: #fff;
    color: #333;
}

select:hover,
select:focus {
    border-color: #2980b9;
}

select option:hover {
    background-color: #3498db;
    color: #fff;
}

label {
    display: block;
    text-align: start;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 6px;
}

label span {
    color: red;
}

.form-input {
    margin: 1rem 0;
}

.container {
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 0 20px;
}

.btn {
    font-size: 18px;
    font-weight: 600;
    display: inline-block;
    padding: 6px 16px;
    text-decoration: none;
    color: var(--black-color);
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    width: 120px;
    max-width: 130px;
    transition: all 0.2s linear;
    text-align: center;
    &:hover {
        border-color: var(--primary-color);
        background-color: #fff;
    }
}

.btn-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.btn-danger {
    background-color: darkred;
    border-color: darkred;
    color: #fff;
    &:hover {
        color: darkred;
    }
}

.submit-btn.load {
    pointer-events: none;
}

.submit-btn.load span {
    opacity: 0;
}

.submit-btn.load::before {
    pointer-events: none;
    position: absolute;
    content: "";
    top: calc(50% - 9px);
    left: calc(50% - 9px);
    border: 3px solid rgba(0, 0, 0, 0.3);
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    animation: spin 1s linear infinite;
}

.btn:active {
    scale: 1.02;
}

.btn:hover {
    opacity: 1.02;
}

.hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #3498db;
    border-radius: 4px;
    outline: none;
    transition: background-color 0.3s;
    position: relative;
    cursor: pointer;
}

input[type="checkbox"]:checked {
    background-color: #3498db;
    border: 2px solid #3498db;
    color: #fff;
}

input[type="checkbox"]:checked:before {
    content: "\2713";
    font-size: 14px;
    line-height: 20px;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    padding: 5px 20px;
    width: 100%;
    background-color: #fff;
    color: #fff;
    z-index: 1000;
    transition: background-color 0.2s, height 0.2s;
    border-bottom: 4px solid var(--primary-color);
}

header .header-wrapper {
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .nav-brand {
    display: flex;
}

header .nav-brand img {
    max-width: 110px;
}

.hero-section {
    position: relative;
    width: 100%;
    height: calc(100vh - 70px);
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 70px;
}

.hero-section::before {
    position: absolute;
    width: 100%;
    height: 100%;
    content: "";
    background-color: black;
    opacity: 0.7;
    z-index: 0;
}

.hero-section .content {
    z-index: 1;
    padding: 0 12px;
    text-align: center;
    direction: rtl;
}

.hero-section h1 {
    font-size: 2.5em;
    line-height: 3.6rem;
    margin: 0;
}

.hero-section h1 span {
    font-weight: 700;
    color: var(--primary-color);
}

.hero-section p {
    font-size: 1.2em;
    margin: 10px auto;
    max-width: 600px;
    margin: 1.5rem auto 2rem;
}

.hero-section p span {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1.5rem;
    line-height: 2rem;
}

.about-section {
    text-align: center;
}

.about-section h2 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.about-section p {
    font-size: 1.1em;
    margin-bottom: 1rem;
    color: #363636;
}

.form-section {
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("../images/whatsApp-image-bg.jpeg") center/cover no-repeat;
    text-align: center;
    min-height: 400px;
    margin: 2rem 0;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    width: 100%;
}
.form-section-container {
    padding: 1rem;
    width: 100%;
}
.form-section .form-container {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    margin: 1rem auto;
    max-width: 450px;
    text-align: center;
}

.form-container.step-1 .info {
    text-align: center;
    color: #fff;
    font-size: 17px;
    margin-bottom: 2rem;
}

.form-container.step-1 .info .title {
    font-size: 2.5em;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.btn.submit-btn {
    margin-top: 1rem;
}

.settings-form,
.update-settings-form {
    direction: rtl;
}

.checkboxs {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.checkboxs label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.festivals-sheet-link {
    display: block;
    margin-top: 1rem;
    color: #fff;
}

.form-container.step-2 .info {
    color: #fff;
    font-size: 14px;
}

.form-container.step-2 .info .title {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 0.25rem;
}

.validate-code-form .form-input input,
.validate-code-form .form-input input::placeholder {
    text-align: center;
}

.night-mode-wrapper {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    min-height: 70px;
}

.night-mode-wrapper .switch-mode {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.night-mode-wrapper .switch {
    flex-shrink: 0;
    position: relative;
    display: inline-block;
    width: 45px;
    height: 25px;
}

.night-mode-wrapper .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.night-mode-wrapper .switch-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e1e1e1;
    -webkit-transition: 0.4s;
    transition: 0.4s;
    -moz-transition: 0.4s;
    -ms-transition: 0.4s;
    -o-transition: 0.4s;
}

.night-mode-wrapper .switch-label:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: #fff;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

.night-mode-wrapper .switch-mode input:checked + .switch-label {
    background-color: var(--black-color);
}

.night-mode-wrapper .switch-mode input:focus + .switch-label {
    box-shadow: 0 0 1px var(--black-color);
}

.night-mode-wrapper .switch-mode input:checked + .switch-label:before {
    transform: translateX(18px);
    -webkit-transform: translateX(18px);
    -ms-transform: translateX(18px);
    -moz-transform: translateX(18px);
    -o-transform: translateX(18px);
}

.night-mode-wrapper .switch-label.rounded {
    border-radius: 35px !important;
}

.night-mode-wrapper .switch-label.rounded:before {
    border-radius: 50%;
}

.night-mode-wrapper .switch-mode-desc {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.night-mode-wrapper .switch-mode-desc p {
    font-size: 15px;
}

.night-mode-wrapper .night-mode-question {
    color: #fff;
    text-decoration: underline;
    cursor: pointer;
}

.night-mode-wrapper .tool-tip {
    display: none;
    position: absolute;
    z-index: 10;
    inset-inline-start: 0;
    top: 100%;
    width: fit-content;
    max-width: 100%;
    padding: 10px;
    background-color: #fff;
    color: #363636;
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
    box-shadow: 0px 0 10px #00000052;
    border-radius: 10px;
}

.night-mode-wrapper .night-mode-question:hover .tool-tip {
    display: initial;
}

.night-mode-wrapper .time-range-wrapper {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    color: #fff;
    display: none;
    opacity: 0;
    transition: 0.3s;
}

.night-mode-wrapper .time-range-wrapper > div {
    min-width: 135px;
    flex-grow: 1;
    display: flex;
    gap: 5px;
    align-items: center;
    overflow: hidden;
}

.success p {
    color: #fff;
    font-size: 2.3em;
    font-weight: 600;
    padding: 0 8px;
    text-align: center;
}

footer {
    padding: 10px 0;
    background-color: var(--black-color);
    text-align: center;
}

footer p {
    margin: 5px 0;
    text-align: center;
    color: #fff;
    padding: 0 8px;
}

footer a {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: underline;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
