/* modal.css */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(27, 26, 24, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #1B1A18;
    width: 90%;
    max-width: 480px;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
    border: 1px solid #f7934630;
    
    transform: translateY(40px) scale(0.92);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    
    position: absolute;
    pointer-events: none; 
}

.modal-overlay.active .modal.active-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-header h2 {
    color: #fff;
    font-family: 'GeneraBold', sans-serif;
    font-size: 32px;
    margin: 0;
    letter-spacing: 0.5px;
}

.close-modal {
    color: #ffffff50;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: #F79346;
    transform: rotate(90deg) scale(1.15);
}

/* Modal Body / Inputs */
.modal-body p {
    color: #ffffffa0;
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 25px;
    margin-top: 0;
}

.modal-input {
    box-sizing: border-box;
    width: 100%;
    padding: 16px 22px;
    margin-bottom: 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    background: #342B2C;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.modal-input::placeholder {
    color: #ffffff60;
}

.modal-input:focus {
    border-color: #F79346;
    background: #1B1A18;
    box-shadow: 0 0 15px rgba(247, 147, 70, 0.15);
}

.modal-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F79346' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px;
    cursor: pointer;
}

.modal-submit-btn {
    width: 100%;
    padding: 16px;
    margin-top: 15px;
    border-radius: 9999px;
    border: none;
    background-color: #F79346;
    color: #1B1A18;
    font-family: 'Godber', sans-serif;
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-submit-btn:hover {
    background-color: #6f4e37;
    color: #fff;
    transform: scale(1.03) rotate(-1deg);
}

.modal-submit-btn:active {
    background-color: #F79346;
    transform: scale(0.97);
}

/* App Store Buttons */
.app-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
}
.app-btn {
    flex: 1;
    background: #342B2C;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 16px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.app-btn img {
    height: 24px;
}
.app-btn:hover {
    background: #1B1A18;
    border-color: #F79346;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(247, 147, 70, 0.2);
}
