/**
 * TÜV TÜRK Randevu Sistemi - Ana Stil Dosyası
 */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 50%, #0a1628 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Container */
.container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 440px;
    padding: 40px 30px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 10px;
}

.logo img {
    width: 70px;
    height: 70px;
}

.logo-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1e5799 0%, #2989d8 50%, #1e5799 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    border: 3px solid #0d3a6a;
}

.logo-icon span {
    color: white;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    line-height: 1.1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 25px;
}

.header h1 {
    color: #1a5a96;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.header p {
    color: #6b7c93;
    font-size: 13px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #1a3a5c;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
    color: #333;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1a5a96;
    box-shadow: 0 0 0 3px rgba(26, 90, 150, 0.1);
}

.form-group input::placeholder {
    color: #a0aec0;
}

.form-group input.error,
.form-group select.error {
    border-color: #e53e3e;
}

.form-group .error-message {
    color: #e53e3e;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-group input.error+.error-message,
.form-group select.error+.error-message {
    display: block;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    border: 1px solid #e2e8f0;
    border-left: 4px solid #1a5a96;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
}

.info-box p {
    color: #4a5568;
    font-size: 14px;
    margin-bottom: 5px;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.info-box strong {
    color: #1a3a5c;
}

/* Button */
.btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1a5a96 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
}

.btn:hover {
    background: linear-gradient(135deg, #154a7a 0%, #2471a3 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(26, 90, 150, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
}

.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.btn-success:hover {
    background: linear-gradient(135deg, #1e8449 0%, #27ae60 100%);
}

/* Calendar Grid */
.calendar-title {
    text-align: center;
    color: #1a3a5c;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.calendar-item {
    text-align: center;
    padding: 12px 8px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-item:hover {
    border-color: #1a5a96;
}

.calendar-item.selected {
    border-color: #1a5a96;
    background: rgba(26, 90, 150, 0.05);
}

.calendar-item .day {
    font-size: 22px;
    font-weight: 700;
    color: #1a3a5c;
}

.calendar-item .month {
    font-size: 12px;
    color: #6b7c93;
    margin-bottom: 8px;
}

.calendar-item .status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.calendar-item .status.available {
    background: #27ae60;
    color: white;
}

.calendar-item .status.full {
    background: #e74c3c;
    color: white;
}

.calendar-item.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Row inputs (SKT/CVV) */
.row {
    display: flex;
    gap: 15px;
}

.row>.form-group {
    flex: 1;
    min-width: 0;
}

/* Mobilde eşit genişlik */
@media (max-width: 480px) {
    .row {
        display: flex;
        gap: 10px;
    }

    .row>.form-group {
        flex: 1 1 50%;
        width: 50%;
    }
}

/* Price Box */
.price-box {
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.price-box strong {
    color: #1a3a5c;
}

/* Waiting Screen */
.waiting-container {
    text-align: center;
    padding: 40px 20px;
}

.waiting-container .logo-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.waiting-container h1 {
    color: #1a5a96;
    font-size: 24px;
    margin-bottom: 10px;
}

.waiting-container .subtitle {
    color: #6b7c93;
    font-size: 14px;
    margin-bottom: 30px;
}

.waiting-container hr {
    border: none;
    border-top: 1px solid #e0e6ed;
    margin: 20px 0;
}

.waiting-container .spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e0e6ed;
    border-top-color: #1a5a96;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.waiting-container .message {
    font-size: 20px;
    color: #1a3a5c;
    font-weight: 600;
    margin-bottom: 10px;
}

.waiting-container .submessage {
    color: #6b7c93;
    font-size: 14px;
}

/* 3D Page */
.page-3d {
    background: #f5f7fa;
    min-height: 100vh;
    padding: 30px 20px;
}

.page-3d .container {
    max-width: 480px;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a3a5c;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
}

.back-link:hover {
    color: #1a5a96;
}

.card-3d {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
}

.card-3d-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-3d-header h2 {
    color: #1a5a96;
    font-size: 16px;
    font-weight: 600;
}

.card-3d-header .bank-logo {
    width: 40px;
    height: 40px;
}

.card-3d h3 {
    color: #1a5a96;
    font-size: 18px;
    margin-bottom: 20px;
}

.card-3d-info {
    margin-bottom: 20px;
}

.card-3d-info .row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.card-3d-info .row:last-child {
    border-bottom: none;
}

.card-3d-info .label {
    color: #6b7c93;
    font-size: 14px;
}

.card-3d-info .value {
    color: #1a3a5c;
    font-weight: 600;
    font-size: 14px;
}

.card-3d .ref-note {
    background: #f8fafc;
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    color: #6b7c93;
    margin-bottom: 15px;
}

.card-3d .form-group {
    margin-bottom: 20px;
}

.card-3d .form-group label {
    color: #1a5a96;
    font-weight: 600;
}

.card-3d .footer-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.card-3d .footer-links a {
    color: #6b7c93;
    text-decoration: none;
    font-size: 13px;
}

.card-3d .footer-links a:hover {
    color: #1a5a96;
}

/* Honeypot */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

/* Responsive */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 30px 20px;
    }

    .header h1 {
        font-size: 18px;
    }

    .calendar-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .calendar-item {
        padding: 10px 5px;
    }

    .calendar-item .day {
        font-size: 18px;
    }
}