@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-color: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --accent: #4f46e5;
    --accent-hover: #4338ca;
    --error: #ef4444;
    --success: #10b981;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-color);
    background-image: radial-gradient(circle at 50% 0%, #e0e7ff 0%, #f8fafc 50%, #f1f5f9 100%);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 45px 35px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0,0,0,0.02);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.logo {
    max-width: 180px;
    margin-bottom: 25px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.02));
}

h1 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.input-wrapper {
    position: relative;
    margin-bottom: 24px;
    background: #ffffff;
    padding: 4px;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.input-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.input-wrapper::before {
    content: "S/N";
    background: #e2e8f0;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 10px;
    margin-left: 8px;
    transition: all 0.3s ease;
}

.input-wrapper:focus-within::before {
    background: var(--accent);
    color: white;
}

#serino {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 12px 16px;
}

#serino::placeholder {
    color: #cbd5e1;
    font-weight: 500;
    letter-spacing: 0px;
}

.btn-submit {
    background: var(--accent);
    color: white;
    border: none;
    padding: 16px 30px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 16px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.3);
}

.btn-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -5px rgba(79, 70, 229, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-reset {
    background: transparent;
    color: var(--text-muted);
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 15px;
    cursor: pointer;
    text-decoration: underline;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-reset:hover {
    color: var(--accent);
    transform: scale(1.02);
}

.btn-reset:active {
    transform: scale(0.98);
}

/* Arama Animasyonu (Spinner) */
.searching-anim {
    display: none;
    margin-top: 25px;
    text-align: center;
}

.spinner {
    animation: rotate 2s linear infinite;
    width: 42px;
    height: 42px;
    margin: 0 auto;
}

.spinner .path {
    stroke: var(--accent);
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

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

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Sonuç Alanı */
#response-area {
    margin-top: 30px;
    text-align: left;
    display: none;
}

.error-msg {
    background: #fef2f2;
    color: var(--error);
    padding: 16px;
    border-radius: 16px;
    border-left: 4px solid var(--error);
    font-weight: 600;
    font-size: 0.95rem;
    animation: slideIn 0.4s ease;
}

.success-msg {
    background: #ecfdf5;
    color: var(--success);
    padding: 16px;
    border-radius: 16px;
    border-left: 4px solid var(--success);
    font-weight: 600;
    font-size: 0.95rem;
    animation: slideIn 0.4s ease;
}

/* Modern Ürün Bilgi Kartı */
.warranty-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0,0,0,0.01);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    position: relative;
    overflow: hidden;
    animation: slideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
}

.warranty-card h2 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.warranty-card h2::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--accent);
    border-radius: 2px;
}

.card-row {
    margin-bottom: 0;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-row:last-of-type {
    border-bottom: none;
}

.card-row .label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-row .value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    text-align: right;
}

.status-box {
    margin-top: 25px;
    padding: 18px;
    border-radius: 16px;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.status-box.valid {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.05);
}

.status-box.expired {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.05);
}

/* İkincil Buton */
.btn-secondary {
    display: block;
    margin-top: 20px;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 14px;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #f1f5f9;
    color: var(--text-main);
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

/* Geniş Ekran Kargo Sayfası Tasarımı */
.container-wide {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 50px;
    width: 100%;
    max-width: 950px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0,0,0,0.02);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.7);
    animation: slideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.serino-banner {
    background: #e0e7ff;
    color: #4f46e5;
    padding: 12px 24px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.serino-banner .banner-title {
    opacity: 0.8;
}

.kargo-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    text-align: left;
    margin-top: 20px;
}

.kargo-col {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-section {
    background: #ffffff;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.info-section h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-section h2::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 16px;
    background: var(--accent);
    border-radius: 2px;
}

.info-section p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Geliştirilmiş Adres Kartı */
.address-box {
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
}

.address-header {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.address-body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.5;
    margin-bottom: 12px;
}

.address-footer {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
}

/* Geliştirilmiş Uyarı Kutusu */
.warning-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    padding: 20px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #78350f;
}

/* Akış Adımları */
.process-steps {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.process-steps li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.step-num {
    background: #e0e7ff;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 800;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.step-content strong {
    color: var(--text-main);
}

.kargo-footer {
    margin-top: 40px;
    text-align: center;
}

.btn-back {
    display: inline-block;
    background: #ffffff;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 14px 28px;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.btn-back:hover {
    background: #f1f5f9;
    color: var(--text-main);
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

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

@media (max-width: 768px) {
    .container-wide {
        padding: 30px 20px;
    }
    .kargo-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* Teknik Servis Kayıt Formu Stilleri */
.form-container {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 40px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0,0,0,0.02);
    border: 1px solid rgba(255, 255, 255, 0.7);
    margin: 20px auto;
    text-align: left;
    animation: slideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.form-group label span.required {
    color: var(--error);
    margin-left: 3px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    background: #ffffff;
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-info-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.4;
}

.product-summary-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 15px 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.product-summary-item {
    flex: 1;
    min-width: 120px;
}

.product-summary-item .label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.product-summary-item .value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.form-actions .btn-back {
    flex: 1;
    margin-top: 0;
}

.form-actions .btn-submit {
    flex: 1.5;
    padding: 14px 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.success-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
    animation: slideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-icon {
    width: 64px;
    height: 64px;
    background: #ecfdf5;
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    font-weight: bold;
}

.success-box h2 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-main);
}

.success-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.request-id-badge {
    background: #e0e7ff;
    color: #4f46e5;
    padding: 8px 16px;
    border-radius: 12px;
    display: inline-block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

@media (max-width: 576px) {
    .form-container {
        padding: 25px 20px;
    }
    .form-actions {
        flex-direction: column;
    }
}

