* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-container, .verification-container {
    padding: 40px;
}

h2, h3 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

h4 {
    color: #555;
    margin-bottom: 15px;
    margin-top: 25px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
    outline: none;
    border-color: #667eea;
}

.vehicles-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.vehicle-group {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

.message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.verification-container {
    border-top: 2px solid #f0f0f0;
    background: #f8f9fa;
}

/* Loading spinner */
.loading {
    display: none;
    text-align: center;
    margin: 20px 0;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Progress bar */
.progress-container {
    background: #f0f0f0;
    border-radius: 25px;
    padding: 3px;
    margin: 20px 0;
}

.progress-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 20px;
    border-radius: 25px;
    width: 0%;
    transition: width 0.3s ease;
    text-align: center;
    line-height: 20px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Input improvements */
.form-group {
    position: relative;
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 12px;
}

.valid {
    color: #28a745;
}

.invalid {
    color: #dc3545;
}

input.valid {
    border-color: #28a745;
}

input.invalid {
    border-color: #dc3545;
}

/* Select Styling */
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    background: white;
    color: #333;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23666' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

select:invalid {
    border-color: #dc3545;
}

select.valid {
    border-color: #28a745;
}

select.invalid {
    border-color: #dc3545;
}

optgroup {
    font-weight: bold;
    color: #4a90e2;
    padding: 8px 0;
}

option {
    font-weight: normal;
    color: #333;
    padding: 8px 15px;
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Success checkmark animation */
.checkmark {
    display: none;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #28a745;
    margin: 20px auto;
    position: relative;
}

.checkmark::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 35px;
    width: 15px;
    height: 25px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.show-checkmark {
    display: block;
    animation: checkmark-pop 0.5s ease-in-out;
}

@keyframes checkmark-pop {
    0% { transform: scale(0); }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Enhanced buttons */
button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
}

.btn-secondary:hover:not(:disabled) {
    background: #5a6268;
}

/* Mobile improvements */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 10px;
    }

    .form-container, .verification-container {
        padding: 20px;
    }

    .vehicle-group {
        margin-bottom: 30px;
    }

    button {
        padding: 18px;
        font-size: 18px;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"] {
        padding: 15px;
        font-size: 16px;
    }
}

/* Admin Link */
.admin-link {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.admin-link a {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.admin-link a:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

/* KVKK Styles */
.kvkk-section {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.checkbox-group {
    margin: 0;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    transform: scale(1.2);
}

.kvkk-text {
    flex: 1;
}

.kvkk-text a {
    color: #007bff;
    text-decoration: underline;
}

.kvkk-text a:hover {
    color: #0056b3;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.3s;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

.modal-body {
    padding: 20px;
    line-height: 1.6;
}

.modal-body h4 {
    color: #333;
    margin: 20px 0 10px 0;
}

.modal-body p, .modal-body li {
    margin-bottom: 10px;
}

.modal-body ul {
    margin-left: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #ddd;
    text-align: right;
}

.modal-footer .btn {
    margin-left: 10px;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes slideIn {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .info-box {
        background: #2d3748;
        color: #e2e8f0;
    }
}

/* Responsive */
/* 2. Araç Styles */
.second-vehicle-section {
    margin: 20px 0;
    text-align: center;
}

.add-vehicle-btn {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    color: #6c757d;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.add-vehicle-btn:hover {
    border-color: #667eea;
    color: #667eea;
    background: #f8f9ff;
}

.add-vehicle-btn.remove-mode {
    background: #fff5f5;
    border-color: #fed7d7;
    color: #e53e3e;
}

.add-vehicle-btn.remove-mode:hover {
    background: #fed7d7;
    border-color: #e53e3e;
}

#secondVehicleFields {
    margin-top: 20px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #f7fafc;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 2% auto;
    }

    .modal-header, .modal-body, .modal-footer {
        padding: 15px;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .radio-option {
        min-width: auto;
        justify-content: flex-start;
    }

    .second-vehicle {
        padding: 20px;
        margin-top: 20px;
    }

    .second-vehicle-header h4 {
        font-size: 16px;
    }
}