/* html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
} */
/* commit test */
.std-main-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 0px;
    width: 100%;
    max-width: 360px;
    justify-content: center;
    margin-bottom: 36px;
    padding: 0 16px;
}


.std_main_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}


.std-main-header {
    color: var(--Stone-800, #292524);
    text-align: center;
    font-family: "Source Code Pro";
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.12px;
    /* width: 285px; */
}

.std-subheader {
    color: var(--Stone-800, #292524);
    text-align: center;
    /* Input/Small Medium */
    font-family: "Source Code Pro";
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.07px;
}

.std-button {
    display: flex;
    /* width: 284px; */
    height: 47px;
    align-items: flex-start;
    display: flex;
    padding: var(--Components-Button-Spacing-Y, 14px) var(--Components-Button-Spacing-X, 16px);
    justify-content: center;
    align-items: center;
    gap: var(--Components-Button-Gap-Between, 10px);
    color: var(--Components-Button-Solid-Blue-Placeholder-Color, #FFF);
    text-align: center;
    /* Input/Medium Semi Bold */
    font-family: "Source Code Pro";
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 0.075px;
    border-radius: var(--Components-Button-Border-Radius, 8px);
    background-color: #0284C7;
    text-decoration: none;
    border: none;
    flex-shrink: 0;
    /* Drop Shadow/sm */
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.2);
}

.std-one-line-text-input {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--Basic-Forms-Input-Spacing-Spacing-Between-Y, 10px);
    align-self: stretch;
    padding-left: 10px;
    display: flex;
    align-items: center;
    align-self: stretch;

    border-radius: var(--Basic-Forms-Input-Border-Radius, 8px);
    border: var(--Basic-Forms-Input-Underline-Border-Radius, 1px) solid var(--Basic-Forms-Input-Border-Border-Color, #F1DEDA);
    background: var(--Basic-Forms-Input-Background-Bg-Color, #FFF);

    /* Drop Shadow/sm */
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.1);

    /* width: 284px; */
    /* Same width as the buttons */
    height: 47px;
    /* Fixed height */
    margin: 0 auto;
    /* Added to center horizontally */
}

.std-text-area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--Basic-Forms-Input-Spacing-Spacing-Between-Y, 10px);
    align-self: stretch;
    padding-left: 10px;
    display: flex;
    align-items: center;
    align-self: stretch;

    border-radius: var(--Basic-Forms-Input-Border-Radius, 8px);
    border: var(--Basic-Forms-Input-Underline-Border-Radius, 1px) solid var(--Basic-Forms-Input-Border-Border-Color, #F1DEDA);
    background: var(--Basic-Forms-Input-Background-Bg-Color, #FFF);

    /* Drop Shadow/sm */
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.1);

    /* width: 284px; */
    /* Same width as the buttons */
    /* Fixed height */
    margin: 0 auto;
    /* Added to center horizontally */
}

/* Text input and dropdown filled text styling */
.std-one-line-text-input,
.std-text-area,
.std-one-line-dropdown {
    color: #292524;
    font-family: "Source Code Pro";
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.075px;
}

.std-one-line-dropdown::placeholder,
.std-one-line-text-input::placeholder,
.std-text-area::placeholder {
    color: #78716C;
    font-family: "Source Code Pro";
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.075px;
}

.std-one-line-dropdown:invalid {
    color: #78716C;
}

.std-bold-text {
    width: 263px;
    height: 18px;
    color: var(--Colors-Stone-800, #292524);
    text-align: center;

    /* Input/Small Semi Bold */
    font-family: "Source Code Pro";
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 0.07px;
}

.std-normal-text {
    color: var(--Black-Tile, #000);
    text-align: center;
    font-family: "Source Code Pro";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.08px;
    color: var(--Black-Tile, #000);
    font-family: "Source Code Pro";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.08px;
}

.std-legal-text {
    color: var(--Navigations-Pagination-Label-Secondary-Color, #78716C);
    text-align: center;

    /* SM/Medium */
    font-family: "Source Code Pro";
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    /* 142.857% */
    letter-spacing: 0.07px;
}

.std-legal-text a {
    color: var(--Navigations-Pagination-Label-Secondary-Color, #78716C);

    /* SM/Medium */
    font-family: "Source Code Pro";
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.07px;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    /* Light grey */
    border-top: 2px solid #fff;
    /* White */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    background: transparent;
    /* Ensure background is transparent */
}

.std-input-box-label {
    flex: 1 0 0;
    color: var(--Basic-Forms-Input-Label-Label-Color, #292524);
    font-family: "Source Code Pro";
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 0.07px;
    text-align: left;
}

.std-label {
    color: var(--Basic-Forms-Input-Label-Label-Color, #292524);
    font-family: "Source Code Pro";
    font-size: 14px;
    font-style: normal;
    line-height: normal;
    letter-spacing: 0.07px;
    font-weight: 400;
}

.std-checkbox-label {
    color: #292524;
    /* Base/Medium */
    font-family: "Source Code Pro";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    /* 150% */
    letter-spacing: 0.08px;
    align-self: stretch;
}

.std-checkbox-div {
    color: #292524;
    display: flex;
    width: 100%;
    max-width: 100%;
    align-items: center;
    gap: var(--Basic-Forms-Checkbox-Gap-Between, 16px);
    flex-shrink: 0;
    border-radius: var(--Basic-Forms-Checkbox-Border-Radius, 8px);
    box-sizing: border-box;
}

@media (min-width: 960px) {
    .std-checkbox-div {
        width: 355px;
        max-width: 355px;
    }
}


.std-checkbox {
    display: flex;
    width: var(--Basic-Forms-Checkbox-Check-Icon-Size, 16px);
    height: var(--Basic-Forms-Checkbox-Check-Icon-Size, 16px);
    justify-content: center;
    align-items: center;
    border-radius: var(--Basic-Forms-Checkbox-Check-Icon-Border-Radius, 4px);
    border: 1px solid var(--Basic-Forms-Checkbox-Check-Icon-Border-Border-Color, #F1DEDA);
    background: var(--Basic-Forms-Checkbox-Check-Icon-Background-Bg-Color, #FFF);
}

.std-checkbox:checked {
    background: #1D4ED8;
    border-color: #1D4ED8;
}

.std-header-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .std-main-div {
        width: 400px;
    }

    .std-main-header {
        font-weight: bold;
        font-size: 26px;
    }

    .std-subheader {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .std-header-section {
        max-width: 300px;
    }
}

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

    100% {
        transform: rotate(360deg);
    }
}

button[type="submit"] {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 47px !important;
    /* Force height during spinner state */
    box-sizing: border-box;
    /* Ensure padding is included in height */
    min-height: 47px;
    /* Backup minimum height */
}

button[type="submit"] .loading-spinner {
    position: absolute;
}

/* Override JavaScript display:none with visibility to maintain button height */
body.spinner-active button[type="submit"] .button-text[style*="display: none"] {
    display: block !important;
    visibility: hidden !important;
}

.std-one-line-dropdown {
    display: flex;
    align-items: center;
    align-self: stretch;
    border-radius: var(--Basic-Forms-Input-Border-Radius, 8px);
    border: var(--Basic-Forms-Input-Underline-Border-Radius, 1px) solid var(--Basic-Forms-Input-Border-Border-Color, #F1DEDA);
    background: var(--Basic-Forms-Input-Background-Bg-Color, #FFF);
    height: 47px !important;
    font-family: "Source Code Pro";
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.075px;
    /* Drop Shadow/sm */
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.1);
    /* Add custom image */
    padding-right: 15px;
    padding-left: 10px;
    /* Add padding to prevent text overlap */
}

.std-full-width {
    width: 100%;
}

.std-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

body:not(.spinner-active) .loading-spinner {
    display: none !important;
}

.cookie-notice {
    display: none;
    /* Hidden by default */
    width: 100%;
    padding: 8px 16px;
    background: rgba(41, 37, 36, 0.7);
    backdrop-filter: blur(7px);
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 1000;
    font-size: 14px;
    margin-top: -11px;
}

/* Show it only when we need to */
.cookie-notice.show {
    display: flex;
}

.cookie-notice-text {
    color: white;
    font-family: "Source Code Pro";
    margin: 0;
}

.cookie-notice button {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: "Source Code Pro";
}

.cookie-notice button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dark-mode .cookie-notice {
    background: rgba(17, 24, 39, 0.8);
}

.persian-font {
    font-family: 'Amiri', 'Scheherazade New', serif;
}

/* Hide reCAPTCHA badge but maintain functionality */
.grecaptcha-badge {
    visibility: hidden !important;
    /* opacity: 0 !important;
    position: absolute !important;
    z-index: -9999 !important; */
}

.std-input-div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.std-toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 20px 0;
    gap: 24px;
}

.std-toggle-label {
    color: var(--Basic-Forms-Input-Label-Label-Color, #292524);
    font-family: "Source Code Pro";
    font-size: 14px;
    font-style: normal;
    line-height: normal;
    letter-spacing: 0.07px;
    font-weight: 400;
    flex: 1 1 0;
    min-width: 0;
    margin-right: 12px;
    word-break: break-word;
    text-align: left;
}

.std-toggle {
    flex-shrink: 0;
    /* Prevent the toggle from shrinking or overflowing */
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    vertical-align: middle;
}

.std-toggle input[type="checkbox"] {
    opacity: 0;
    width: 42px !important;
    height: 24px;
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
    cursor: pointer;
    z-index: 2;
}

.std-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 42px !important;
    background-color: #e4e4e4;
    transition: background-color 0.2s;
    border-radius: 24px;
    z-index: 1;
}

.std-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: transform 0.2s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.std-toggle input:checked+.std-toggle-slider {
    background-color: #0284C7;
}

.std-toggle input:checked+.std-toggle-slider:before {
    transform: translateX(18px);
}

/* Range Slider Styles */
.std-range-container {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    justify-content: flex-start;
}

input[type="range"] {
    flex-grow: 1;
}

.std-range-label {
    font-family: "Source Code Pro", monospace;
    font-size: 14px;
    color: #292524;
    white-space: nowrap;
}

.std-range-text {
    text-align: center;
    margin-top: 8px;
    font-family: "Source Code Pro", monospace;
    font-size: 14px;
    color: #292524;
    width: 100%;
}

/* Desktop and Mobile Visibility Classes */
.desktop-only {
    display: none;
}

.mobile-only {
    display: none;
}

@media (min-width: 960px) {
    .desktop-only {
        display: revert !important;
    }
}

@media (max-width: 959px) {
    .mobile-only {
        display: revert !important;
    }
}
