/* ================================================================
   QR VISITOR REGISTRATION FORM - MODERN & RESPONSIVE
   ================================================================ */

:root {
    --primary-color: #0084ff;
    --primary-dark: #0066cc;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --bg-light: #f9fafb;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-primary);
}

.qr-registration-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.registration-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px 30px;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    backdrop-filter: blur(10px);
}

.icon-wrapper i {
    font-size: 40px;
}

.title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

/* Form Sections */
.form-section {
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.section-title i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Form Controls */
.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-label.required::after {
    content: ' *';
    color: var(--danger-color);
}

.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.form-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* File Input Styling */
.form-control[type="file"] {
    padding: 10px;
    cursor: pointer;
}

.form-control[type="file"]::file-selector-button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    margin-right: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-control[type="file"]::file-selector-button:hover {
    background: var(--primary-dark);
}

/* Image Preview */
.img-thumbnail {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 8px;
    margin-top: 10px;
}

/* KVKK Section */
.kvkk-section {
    background: var(--bg-light);
}

.form-check {
    padding-left: 0;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    float: left;
    margin-top: 2px;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
    cursor: pointer;
    display: block;
    margin-left: 32px;
}

.kvkk-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.kvkk-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 12px;
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 132, 255, 0.3);
    min-width: 250px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 132, 255, 0.4);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-btn .spinner-border {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

/* Alert Messages */
.alert {
    border-radius: 12px;
    padding: 16px 20px;
    margin: 20px 30px;
    display: flex;
    align-items: center;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid var(--success-color);
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid var(--danger-color);
}

.alert i {
    font-size: 20px;
}

/* Loading State */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .qr-registration-container {
        padding: 10px 0;
    }

    .registration-card {
        border-radius: 15px;
    }

    .card-header {
        padding: 30px 20px;
    }

    .title {
        font-size: 26px;
    }

    .subtitle {
        font-size: 14px;
    }

    .form-section {
        padding: 20px;
    }

    .section-title {
        font-size: 18px;
    }

    .submit-btn {
        width: 100%;
        min-width: auto;
    }

    .icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .icon-wrapper i {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 22px;
    }

    .form-section {
        padding: 15px;
    }

    .alert {
        margin: 15px;
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* Accessibility */
.form-control:focus,
.form-check-input:focus,
.submit-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .submit-btn,
    .alert {
        display: none;
    }
}

/* vCard Confirmation Modal Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
