/* EXPERIX Global Modern UI Design System */
:root {
    --primary: #F9B418;
    /* Experix Orange */
    --primary-dark: #cc9414;
    --dark: #404040;
    --darker: #2d2d2d;
    --light: #f8f9fa;
    --text-white: #ffffff;
    --text-muted: #bbbbbb;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --border-radius: 12px;
}

body,
html {
    height: 100%;
    margin: 0;
    background-color: var(--dark) !important;
    font-family: 'Montserrat', sans-serif !important;
    color: var(--text-white);
}

/* Common Background with Logo Overlay */
.bg-overlay {
    position: relative;
    min-height: 100vh;
    padding: 20px;
    background-image: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
}

.logo-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.logo-overlay img {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

@media (max-width: 768px) {
    .logo-overlay {
        top: 5px;
        right: 10px;
    }

    .logo-overlay img {
        height: 50px;
    }

    .appointment-step .btn {
        width: 100% !important;
        margin-bottom: 15px !important;
    }

    .appointment-step .btn:last-child {
        margin-bottom: 0 !important;
    }
}

/* Glassmorphism Containers */
.glass-container {
    background: rgba(45, 45, 45, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 20px;
}

.text-primary {
    color: var(--primary) !important;
}

/* Buttons */
.btn-experix {
    background-color: var(--primary);
    color: var(--darker) !important;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    text-align: center;
}

.btn-experix:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(249, 180, 24, 0.3);
    text-decoration: none;
}

.btn-experix-secondary {
    background-color: transparent;
    border: 2px solid var(--text-muted);
    color: var(--text-muted) !important;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-experix-secondary:hover {
    border-color: var(--text-white);
    color: var(--text-white) !important;
    text-decoration: none;
}

/* Form Controls */
.form-control-experix {
    background: rgba(58, 58, 58, 0.6) !important;
    border: 1px solid #555 !important;
    color: white !important;
    border-radius: 8px !important;
    height: 45px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control-experix:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 5px rgba(249, 180, 24, 0.3);
}

/* Main Splash Page Cards (Home/Index) */
.portal-entry {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 5%;
    height: 80vh;
}

.portal-title {
    font-size: 3.5vw;
    line-height: 1.2;
    margin-bottom: 30px;
}

.portal-subtitle {
    font-size: 4vw;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 40px;
}

.portal-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: fixed;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
}

.btn-portal {
    width: 280px;
    padding: 20px;
    background: rgba(64, 64, 64, 0.8);
    border: 2px solid #555;
    color: white;
    border-radius: var(--border-radius);
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-portal:hover {
    border-color: var(--primary);
    background: var(--darker);
    transform: translateX(-10px);
}

.btn-portal.active {
    background: var(--primary);
    color: var(--darker);
    border-color: var(--primary);
}

/* Appointment Specific Fixes */
.packet-card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.packet-card {
    flex: 1 1 calc(50% - 15px);
    min-width: 280px;
    background: rgba(64, 64, 64, 0.8);
    border: 2px solid #555;
    border-radius: var(--border-radius);
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.packet-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.packet-card.active {
    border-color: var(--primary);
    background: rgba(249, 180, 24, 0.1);
}

.time-slot-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
}

.time-slot {
    background: rgba(64, 64, 64, 0.6);
    border: 1px solid #555;
    padding: 8px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot:hover {
    border-color: var(--primary);
    background: var(--darker);
}

.time-slot.active {
    background: var(--primary);
    color: var(--darker);
    border-color: var(--primary);
}

@media (max-width: 991px) {
    .time-slot-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 575px) {
    .time-slot-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .packet-card {
        flex: 1 1 100%;
    }
}

/* Appointment Stepper & Progress */
.stepper {
    display: flex;
    justify-content: space-between;
    background: #333;
    padding: 15px 30px;
    border-bottom: 2px solid var(--primary);
}

.step-item {
    text-align: center;
    flex: 1;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step-item.active {
    opacity: 1;
    color: var(--primary);
}

.step-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 28px;
    border: 2px solid currentColor;
    border-radius: 50%;
    margin-bottom: 5px;
}

/* Loading Spinner */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-direction: column;
}

.loader-spinner {
    border: 4px solid #333;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Payment Buttons Enhancement */
#indirimli,
#normal {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: var(--text-white) !important;
    transition: all 0.3s ease;
}

#indirimli:hover,
#indirimli.btn-warning {
    background: var(--primary) !important;
    color: var(--darker) !important;
    border-color: var(--primary) !important;
}

#normal:hover,
#normal.btn-light {
    background: var(--light) !important;
    color: var(--darker) !important;
    border-color: var(--light) !important;
}

#finalPriceDisplay {
    font-size: 2.5rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .portal-title {
        font-size: 28px;
        padding-top: 80px;
    }

    .portal-subtitle {
        font-size: 32px;
    }

    .portal-actions {
        position: relative;
        right: 0;
        top: 0;
        transform: none;
        width: 100%;
        margin-top: 40px;
    }

    .btn-portal {
        width: 100%;
        transform: none !important;
    }

    .portal-entry {
        height: auto;
        padding-bottom: 50px;
    }
}