@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --- Guru Plus Design System --- */
:root {
    /* 1. Foundations - Color Palette */
    --brand-primary: #111111;
    --brand-primary-rgb: 17, 17, 17;
    --brand-secondary: #5348ce;
    --brand-secondary-rgb: 83, 72, 206;
    --success: #10B981;
    --success-bg: #ECFDF5;
    --error: #EF4444;
    --error-bg: #FEF2F2;
    --warning: #F59E0B;
    --warning-bg: #FFFBEB;
    --info: #3B82F6;
    --info-bg: #EFF6FF;
    /* Neutrals */
    --bg-main: #FAFAFA;
    --bg-card: #FFFFFF;
    --text-main: #111827;
    --text-muted: #666666;
    --text-disabled: #A1A1AA;
    --border-color: #d1d5db;
    --border-hover: rgb(17 24 39 / var(--tw-border-opacity, 1));
    --border-card-color: #e5e7eb;
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 40px 80px rgba(0, 0, 0, 0.08);
    --shadow-brand: 0 10px 20px rgba(var(--brand-primary-rgb), 0.15);
    /* Spacing */
    --space-2xs: 4px;
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 80px;
    /* Radius */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 9999px;
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ========================================
   ACCESSIBILITY
   WCAG 2.1 AA / ADA / Section 508 Compliance
   ======================================== */

/* Skip Link for Keyboard Users */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 9999;
    padding: 12px 24px;
    background: var(--brand-primary);
    color: white;
    font-weight: 700;
    border-radius: var(--radius-xs);
    text-decoration: none;
    transition: top 0.3s;
}

    .skip-link:focus {
        top: 16px;
    }

/* Focus Visible Styles - Ensures keyboard users see focus indicators */
*:focus-visible {
    outline: 2px solid var(--brand-secondary);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--brand-secondary);
    outline-offset: 2px;
}

/* Remove default focus for mouse users */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Reduced Motion - Respects user accessibility preferences */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Screen Reader Only - Visually hidden but accessible to assistive tech */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   BASE STYLES
   ======================================== */

/* Base Styles */
body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

/* --- Typography --- */
h1,
.h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: var(--space-sm);
}

h2,
.h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-sm);
}

h3,
.h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

/* --- Components --- */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    border: 1px solid transparent;
    gap: 8px;
    font-size: 0.95rem;
    outline: none;
    height: 46px;
}

.btn-primary {
    background-color: var(--brand-primary);
    color: white;
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-brand);
    }

.btn-secondary {
    background-color: var(--brand-secondary);
    color: white;
}

    .btn-secondary:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(var(--brand-secondary-rgb), 0.15);
        color: #262626;
    }

.btn-outline {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-main);
}

    .btn-outline:hover {
        border-color: var(--brand-primary);
        background: rgba(var(--brand-primary-rgb), 0.05);
    }

/* Form Fields */
.input-label {
    font-size: .875rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: .5rem;
}

.form-input {
    width: 100%;
    padding: .75px 1rem !important;
    border-radius: var(--radius-xs) !important;
    border: 1px solid var(--border-color) !important;
    background: white;
    font-family: inherit;
    transition: var(--transition-fast);
    outline: none;
    font-size: 1rem !important;
    color: var(--text-main) !important;
    height: 46px !important;
}

    input:focus,
    textarea:focus,
    select:focus,
    .form-input:focus {
        outline: none !important;
        /*box-shadow: none !important;*/
        border-color: var(--border-hover) !important; /* veya normal border */
        box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.1) !important;
    }

/* Select dropdown - arrow positioning */
select.form-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 20px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Textarea - override height and add proper padding */
textarea.form-input {
    height: auto;
    min-height: 80px !important;
    padding: 0.75rem 1rem !important;
    resize: vertical;
}

    textarea.form-input::placeholder {
        color: var(--text-disabled);
        opacity: 1;
    }

/* Checkbox - Custom Brand Style */
.form-checkbox,
input[type="checkbox"].form-checkbox {
    width: 18px;
    height: 18px;
    border-radius: var(--radius-xs);
    border: 2px solid var(--border-color);
    background-color: white;
    cursor: pointer;
    transition: var(--transition-fast);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .form-checkbox:hover,
    input[type="checkbox"].form-checkbox:hover {
        border-color: var(--brand-primary);
    }

    .form-checkbox:checked,
    input[type="checkbox"].form-checkbox:checked {
        background-color: var(--brand-primary);
        border-color: var(--brand-primary);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
        background-size: 14px;
        background-position: center;
        background-repeat: no-repeat;
    }

    .form-checkbox:focus,
    input[type="checkbox"].form-checkbox:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb, 15, 23, 42), 0.15);
    }

/* Badges - Modern Soft Style */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: .375rem .75rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    letter-spacing: 0.02em;
    background: #F3F4F6;
    color: #4B5563;
    font-size: 0.75rem;
    line-height: 1rem;
}

.badge-info {
    background: var(--info-bg);
    color: var(--info);
}

.badge-success {
    background: var(--success-bg);
    color: var(--success);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.badge-error,
.badge-danger {
    background: var(--error-bg);
    color: var(--error);
}

.badge-brand {
    background: rgba(var(--brand-secondary-rgb), 0.1);
    color: var(--brand-secondary);
}

.badge-sm {
    padding: 3px 8px;
    font-size: 0.7rem;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-card-color);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

    .card:hover {
        box-shadow: var(--shadow-md);
    }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-pill);
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--text-disabled);
    }

/* --- Icons --- */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}

.icon-xs {
    font-size: 14px !important;
}

.icon-sm {
    font-size: 18px !important;
}

.icon-md {
    font-size: 24px !important;
}

.icon-lg {
    font-size: 32px !important;
}

.icon-xl {
    font-size: 48px !important;
}

.brand-title-main {
    font-family: "Red Hat Display";
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 2rem;
}

.brand-title-main-members {
    font-family: "Red Hat Display";
    font-size: 4rem;
    font-weight: 700;
    line-height: 2rem;
}

.brand-title-left {
    color: #000;
}

.brand-title-right {
    color: #5448ce;
}

.oyder-logo {
    width: auto;
    height: 1.7rem;
    margin-top: 5px;
}

.logo-add {
    width: auto;
    height: 3rem;
    margin-left: 20px;
}
/* --- Price Display --- */
.price-display {
    display: inline;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

.price-currency {
    color: inherit;
    opacity: 0.5;
    font-weight: 400;
    font-size: 0.8em;
    vertical-align: baseline;
}

.price-amount {
    color: inherit;
    font-weight: 700;
    font-size: 1em;
}

.price-decimal {
    color: inherit;
    opacity: 0.5;
    font-weight: 400;
    font-size: 0.65em;
    vertical-align: baseline;
}
/* --- Step Wizard --- */
.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    background: #e5e7eb;
    color: #6b7280;
    transition: 0.3s;
}

.step-label {
    margin-top: 6px;
    font-size: 12px;
    color: #9ca3af;
    transition: 0.3s;
}

.step-line {
    flex: 1;
    height: 4px;
    background: #e5e7eb;
    margin: 0 12px;
    border-radius: 9999px;
    transition: 0.4s;
}

.step-content {
    min-width: 100%;
    padding: 1rem;
    overflow-y: auto;
    display: none;
}

    .step-content.active {
        display: block;
    }

/* Step wizard mobile */
@media (max-width: 640px) {
    .step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 1rem;
    }

    .step-line {
        display: none;
    }

    .step-circle {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    input:not([type="radio"]):not([type="checkbox"]),
    select,
    textarea {
        width: 100% !important;
    }
}

/* Grid columns responsive */
@media (max-width: 640px) {
    .grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
}

/* Table responsive */
@media (max-width: 640px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    thead, tbody, th, td, tr {
        display: block;
    }

    th, td {
        text-align: left;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

.full-width-container {
    width: 90vw;
    max-width: 1024px;
}


.tab-content {
    transition: all 0.2s ease;
}