/**
 * Custom Payment Checkout Modal Styles
 * Fullscreen version
 */

/* Modal Overlay */
#custom-payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    display: none;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal Container */
#custom-payment-registration-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    z-index: 1000000;
    display: none;
    overflow-y: auto;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Modal Content Wrapper */
.modal-content-wrapper {
    max-width: 600px;
    margin: 50px auto;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    position: relative;
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f1f1;
}

.modal-header h2 {
    margin: 0;
    padding: 0;
    font-size: 1.8rem;
    color: #333;
    font-weight: 600;
}

#custom-payment-modal-close {
    cursor: pointer;
    font-size: 1.8rem;
    font-weight: bold;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    color: #555;
    transition: all 0.2s ease;
    line-height: 1;
    position: absolute;
    top: 15px;
    right: 15px;
}

#custom-payment-modal-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

/* Form Tabs */
.form-tabs {
    display: flex;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    background: #f8f8f8;
    border: none;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.form-tab.active {
    background: #4a6cf7;
    color: #fff;
    box-shadow: 0 5px 15px rgba(74, 108, 247, 0.3);
}

/* Forms */
.modal-form {
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease;
}

.modal-form .form-row {
    margin-bottom: 20px;
}

.modal-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
    font-size: 1rem;
}

.modal-form input[type="text"],
.modal-form input[type="email"],
.modal-form input[type="password"],
.modal-form input[type="tel"],
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.modal-form input[type="text"]:focus,
.modal-form input[type="email"]:focus,
.modal-form input[type="password"]:focus,
.modal-form input[type="tel"]:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    border-color: #4a6cf7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.2);
    background-color: #fff;
}

.modal-form .required {
    color: #e74c3c;
    font-weight: bold;
}

.modal-form button {
    background-color: #4a6cf7;
    color: #fff;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 15px;
    width: 100%;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(74, 108, 247, 0.3);
}

.modal-form button:hover {
    background-color: #3a5bd7;
    transform: translateY(-2px);
}

.modal-form button:active {
    transform: translateY(0);
}

/* Form Toggle Links */
.toggle-form {
    display: block;
    margin-top: 20px;
    text-align: center;
    color: #4a6cf7;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.toggle-form:hover {
    color: #3a5bd7;
    text-decoration: underline;
}

/* Form Errors */
.form-error {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    padding: 5px 0;
}

.login-error,
.registration-error {
    color: #e74c3c;
    padding: 15px;
    border-left: 4px solid #e74c3c;
    border-radius: 4px;
    margin-bottom: 20px;
    background-color: rgba(231, 76, 60, 0.1);
    font-weight: 500;
}

.registration-success {
    color: #27ae60;
    padding: 15px;
    border-left: 4px solid #27ae60;
    border-radius: 4px;
    margin: 15px 0;
    background-color: rgba(39, 174, 96, 0.1);
    text-align: center;
    font-weight: 500;
}

/* Shipping Information Section */
.modal-form h3 {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #f1f1f1;
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Select Styles */
.modal-form 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='%23555' 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 10px center;
    background-size: 15px;
    padding-right: 30px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .modal-content-wrapper {
        max-width: 90%;
        margin: 30px auto;
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .form-tab {
        padding: 12px 10px;
        font-size: 0.9rem;
    }
    
    .modal-form label {
        font-size: 0.95rem;
    }
    
    .modal-form input[type="text"],
    .modal-form input[type="email"],
    .modal-form input[type="password"],
    .modal-form input[type="tel"],
    .modal-form select,
    .modal-form textarea {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    .modal-form button {
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .modal-content-wrapper {
        max-width: 95%;
        margin: 20px auto;
        padding: 15px;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    #custom-payment-registration-modal {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }
    
    .modal-content-wrapper {
        background-color: #2d2d2d;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    
    .modal-header {
        border-bottom-color: #444;
    }
    
    .modal-header h2 {
        color: #f1f1f1;
    }
    
    #custom-payment-modal-close {
        background: #444;
        color: #f1f1f1;
    }
    
    #custom-payment-modal-close:hover {
        background: #555;
    }
    
    .form-tab {
        background: #333;
        color: #ccc;
    }
    
    .modal-form label {
        color: #ccc;
    }
    
    .modal-form input[type="text"],
    .modal-form input[type="email"],
    .modal-form input[type="password"],
    .modal-form input[type="tel"],
    .modal-form select,
    .modal-form textarea {
        border-color: #444;
        background-color: #333;
        color: #f1f1f1;
    }
    
    .modal-form input[type="text"]:focus,
    .modal-form input[type="email"]:focus,
    .modal-form input[type="password"]:focus,
    .modal-form input[type="tel"]:focus,
    .modal-form select:focus,
    .modal-form textarea:focus {
        border-color: #4a6cf7;
        background-color: #3a3a3a;
    }
    
    .modal-form h3 {
        border-top-color: #444;
        color: #f1f1f1;
    }
} 