:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --success: #10b981;
    --error: #ef4444;
    --text: #0f172a;
    --text-secondary: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.container {
    max-width: 768px;
    width: 100%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    margin: 20px auto;
}

/* Glass Card */
.glass-card {
    background: white;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

/* Header */
.header {
    margin-bottom: 0;
    padding: 2rem 1rem 1.5rem 1rem;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid #e2e8f0;
}

.header-logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 0.5rem;
    text-shadow: none;
}

.header h1 .highlight {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0.25rem;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.exam-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.875rem;
    color: var(--text);
    text-align: left;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.info-item .icon {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
    flex-shrink: 0;
    color: var(--primary);
}

.info-item strong {
    font-weight: 600;
}

/* Form Sections */
.form-section {
    padding: 1.5rem;
    margin-bottom: 0;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.section-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Forms */
.tckn-form,
.registration-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: #f8fafc;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

input::placeholder {
    color: #94a3b8;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    background-color: #f8fafc;
    padding-right: 3rem;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

select:focus {
    background-color: white;
}

/* KVKK Consent */
.kvkk-container {
    margin: 0.5rem 0 1rem 0;
    text-align: left;
}

.kvkk-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    position: relative;
    user-select: none;
}

.kvkk-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    min-width: 20px;
    height: 20px;
    background-color: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.kvkk-label:hover input~.checkmark {
    border-color: var(--primary-light);
    background-color: #fff;
}

.kvkk-label input:checked~.checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.kvkk-label input:checked~.checkmark:after {
    display: block;
}

.kvkk-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed var(--primary);
    transition: all 0.2s;
}

.kvkk-link:hover {
    color: var(--primary-light);
    border-bottom-style: solid;
}

.label-text {
    padding-top: 1px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.4);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.5);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-large {
    width: 100%;
    padding: 1.125rem;
    font-size: 1.05rem;
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn.loading .btn-text {
    opacity: 0;
}

.btn.loading .btn-loader {
    display: block;
    position: absolute;
}

/* Message Area */
.message-area {
    margin-top: 1rem;
}

/* FAQ Section */
.faq-section {
    padding: 1.5rem;
    margin-bottom: 0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.faq-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
    text-align: center;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.125rem;
    background: white;
    border: none;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question span {
    flex: 1;
    line-height: 1.4;
}

.faq-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
    color: var(--primary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-question {
    background: #f8fafc;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 600px;
}

.faq-answer p,
.faq-answer ul {
    padding: 0 1.125rem 1.125rem 1.125rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.7;
    margin: 0;
}

.faq-answer p+p {
    padding-top: 0.5rem;
}

.faq-answer ul {
    padding-left: 2.5rem;
    padding-top: 0.5rem;
}

.faq-answer li {
    margin-bottom: 0.375rem;
}

.faq-answer strong {
    color: var(--text);
    font-weight: 600;
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 1.5rem 2rem 1.5rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 25%, #1e40af 50%, #0ea5e9 75%, #06b6d4 100%);
    color: white;
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.3), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.3), transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.2), transparent 50%);
    pointer-events: none;
    animation: footerGlow 8s ease-in-out infinite alternate;
}

@keyframes footerGlow {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.footer>* {
    position: relative;
    z-index: 1;
}

.footer-contact {
    margin-bottom: 2rem;
}

.footer-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.footer-phone:hover {
    transform: scale(1.05);
}

.footer-phone svg {
    width: 28px;
    height: 28px;
    stroke: #0ea5e9;
    flex-shrink: 0;
}

.footer-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.footer-email:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.footer-email svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    flex-shrink: 0;
}

.footer a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer a:hover {
    opacity: 0.8;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 1.5rem 0;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: rgba(14, 165, 233, 0.3);
    border-color: rgba(14, 165, 233, 0.5);
    transform: translateY(-3px);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #0ea5e9, transparent);
    margin: 1.5rem auto;
    border-radius: 2px;
}

.footer-copyright {
    margin-top: 1.5rem;
    opacity: 0.7;
    font-size: 0.8rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 639px) {
    body {
        padding: 10px;
    }

    .container {
        margin: 10px auto;
        border-radius: 12px;
    }
}

@media (min-width: 640px) {
    .header {
        padding: 2.5rem 2rem 2rem 2rem;
    }

    .header h1 {
        font-size: 2rem;
    }

    .header h1 .highlight {
        font-size: 1.75rem;
    }

    .form-section,
    .faq-section {
        padding: 2rem;
    }

    .exam-info {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .info-item {
        flex: 1;
        min-width: 140px;
    }
}

/* Hidden by default */
#registrationSection {
    display: none;
}

/* SweetAlert2 Custom Styling */
.swal2-popup {
    font-family: 'Inter', sans-serif;
    border-radius: 24px;
    padding: 2rem;
}

.swal2-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.swal2-html-container {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.swal2-confirm {
    border-radius: 12px !important;
    padding: 0.75rem 2rem !important;
    font-weight: 600 !important;
}

/* Smooth entrance animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-card {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:nth-child(2) {
    animation-delay: 0.1s;
}

.glass-card:nth-child(3) {
    animation-delay: 0.2s;
}

.glass-card:nth-child(4) {
    animation-delay: 0.3s;
}