/* ========== PREORDER MODAL ========== */
.preorder-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    transition: opacity 0.3s ease;
}

.preorder-modal-overlay.inactive {
    display: none;
    opacity: 0;
}

.preorder-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 370px;
    background: rgba(20, 20, 20, 0.4);
    border-radius: 8px;
    padding: 24px;
    z-index: 2001;
    box-shadow: 0px 4px 8px 0px #00000014;
    backdrop-filter: blur(96px);
    max-height: 90vh;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.preorder-modal.inactive {
    display: none;
    opacity: 0;
    transform: translate(-50%, -48%);
}

.preorder-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.preorder-modal-close:hover {
    opacity: 0.7;
}

.preorder-modal-header {
    padding-bottom: 24px;
    border-bottom:1px solid #262626;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}

.preorder-modal-header span:first-of-type {
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
}

.preorder-modal-header span:last-of-type {
    font-family: Montserrat;
    font-weight: 400;
    font-size: 12px;
    text-align: center;
    color:#DDDDDD;
    margin: 0;
    line-height: 1.5;
}

.preorder-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 24px;
}

.preorder-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.preorder-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preorder-form-group.full-width {
    grid-column: 1 / -1;
}

.preorder-form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #B3B3B3;
    margin:0;
}

.preorder-input {
    background: #262626;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 12px 16px;
    color: #F1F1F3;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.preorder-input::placeholder {
    color: #7E7E81;
}

.preorder-input:focus {
    outline: none;
    border-color: #FFD11A;
    background: #2a2a2a;
}

/* Phone input styles */
.preorder-phone-input {
    display: flex;
    gap: 12px;
    align-items: stretch;
}


.preorder-tel-input {
    flex: 1 1 auto;
    background: #262626;
    border: 1px solid #333333;
    border-radius: 6px;
    padding: 15px 16px;
    color: #CCCCCC;
    font-size: 14px;
    font-weight: 500;
    transition: border-color 0.2s ease;
}

.preorder-tel-input::placeholder {
    color: #7E7E81;
}

.preorder-tel-input:focus {
    outline: none;
    border-color: #FFD11A;
    background: #2a2a2a;
}

.preorder-btn-primary {
    background: #FFD11A;
    border-radius: 6px;
    padding: 12px 16px;
    color: #141414;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.preorder-btn-primary:disabled {
    opacity: 1;
    cursor: not-allowed;
}

.preorder-btn-primary.valid {
    cursor: pointer;
    opacity: 1;
    color: #F1F1F3;
}

.preorder-btn-primary.valid svg path {
    fill: #FFD11A !important;
}
.preorder-country-trigger {
    padding: 10px 16px;
}

/* preorder Input Validation Styles */
.preorder-input {
  width: 100%;
  background: #1A1A1A;
  border: 1px solid #262626;
  border-radius: 6px;
  padding: 15px 16px;
  color: #CCCCCC;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s ease;
}
.preorder-form-group .signup-country-trigger,
#preorder-tel-input{
  background: #1A1A1A;
  border: 1px solid #262626;
}

.preorder-input::placeholder {
    color: #7E7E81;
}

.preorder-input:focus {
    outline: none;
    border-color: #FFD11A;
    background: #2a2a2a;
}

.preorder-input.error {
    border-color: #FF4444;
    background: #3a1a1a;
}

.preorder-input.error:focus {
    border-color: #FFD11A;
    background: #2a2a2a;
}

.preorder-tel-input.error:focus {
    border-color: #FFD11A;
    background: #2a2a2a;
}

.preorder-tel-input::placeholder {
    color: #7E7E81;
}

.preorder-tel-input:focus {
    outline: none;
    border-color: #FFD11A;
    background: #2a2a2a;
}

.preorder-tel-input.error {
    border-color: #FF4444;
    background: #3a1a1a;
}
.agree-label {
    display:flex;
    gap: 8px;
}
.agree-custom {
    min-width: 24px;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #111214;
    border: 1px solid #333;
    display: inline-block;
    position: relative;
    cursor: pointer;
}
.agree-checkbox {
    display: none;
}
.agree-checkbox:checked + .agree-custom {
    background: #FFD11A;
    border-color: #FFD11A;
}
.agree-checkbox:checked + .agree-custom::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 5px;
    width: 6px;
    height: 10px;
    border: solid #141414;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.agree-text {
    color: #fff;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.3;
    display: block;
}
.agree-text a.text-accent{
    font-size: 10px;
    font-weight: 600;
    text-decoration: underline;
    color: #fff;
}
.agree-text a.text-accent:active,
.agree-text a.text-accent:hover{
    font-size: 10px;
    font-weight: 600;
    color:#fff;
}
/* Form validation styles */
.preorder-form-group.error .preorder-input,
.preorder-form-group.error .signup-tel-input,
.preorder-form-group.error .agree-checkbox {
    border-color: #dc2626 !important;
}

.preorder-form-group.error .error-message {
    font-size: 12px;
    color: #dc2626;
    font-weight: 500;
    margin-top: 4px;
    display: block;
}

.preorder-input:disabled,
.preorder-tel-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.preorder-btn-sent{
  color:#FFD11A;
}
/* modal window */
.contact-form-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form-modal-overlay.inactive {
    display: none;
}

.contact-form-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #0f0f0f;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 24px;
    max-width: 370px;
    width: 90%;
    z-index: 2001;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.contact-form-modal.inactive {
    display: none;
}

.contact-form-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.contact-form-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    background: #FFD11A;
    border-radius: 50%;
    margin-top:32px;
}
.contact-form-modal__text{
    display: flex;
    flex-direction: column;
    gap:12px;
}
.contact-form-modal__text span:first-of-type {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.contact-form-modal__text span:last-of-type {
    font-size: 12px;
    color: #DDDDDD;
    margin: 0;
    line-height: 1.3;
}
.contact-form-modal__buttons{
    display: flex;
    gap:8px;
    width: 100%;
}
#modal-success .contact-form-modal__buttons{
    flex-direction: column;
}
#modal-success .contact-form-modal-btn:hover,
#modal-success .contact-form-modal-btn:active{
    color: #141414;
}
#modal-success .contact-form-modal-btn-no:hover,
#modal-success .contact-form-modal-btn-no:active{
    color: #F1F1F3;
}
.contact-form-modal-btn, .contact-form-modal-btn-no {
    display: flex;
    flex: 1 0 0;
    padding: 11px 24px;
    background: #FFD11A;
    color: #141414;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    justify-content: center;
}
.contact-form-modal-btn-no{
    background: #262626;
    border: 1px solid #262626;
    color: #F1F1F3;
}
.contact-form-modal-btn:hover {
    background: #FFDB4D;
}

@media(max-width: 992px){
    .contact-form__inputs{
        flex-direction: column;
    }
    .contact-form{
        padding: 40px 16px 64px;
    }
}

@media (max-width: 768px){
    .agree-text{
        display: block;
        margin-top: auto;
        margin-bottom: auto;
    }
}