/**
 * Wizard Page Styles
 * MarkaClick E-Commerce Platform (Redesigned)
 */

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

:root {
    --primary: #000000;
    --primary-light: #68a2ff;
    /* Blue for active elements */
    --secondary: #64748b;
    --bg-light: #ffffff;
    --border: #dbe3ed;
    --border-dark: #dde3eb;
    --text-dark: #0f172a;
    --text-gray: #64748b;
    --green-success: #22c55e;
}

@keyframes bi-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(359deg);
    }
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes icon-bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-7px);
    }
}

@keyframes icon-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-container {
    background: white;
    width: 90%;
    max-width: 550px;
    max-height: 85vh;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modal-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.modal-header {
    padding: 24px 30px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.modal-header h3 {
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.modal-close-btn {
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Icon Animations */
.icon-success-anim {
    color: #10b981;
    animation: icon-bounce 1s ease;
}

.icon-warning-anim {
    color: #f59e0b;
    animation: icon-pulse 2s infinite ease-in-out;
}

.icon-error-anim {
    color: #ef4444;
    animation: icon-pulse 1.5s infinite ease-in-out;
}

.bi-spin {
    display: inline-block;
    animation: bi-spin 2s infinite linear;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    min-height: 100vh;
    display: block;
    overflow-x: hidden;
    background: #ffffff;
}


/* Layout */
.wizard-layout {
    display: flex;
    width: 100%;
    min-height: 800px;
    background-color: #ffffff;
    background-image:
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.02) 0px, transparent 50%);
    position: relative;
}

/* Sidebar */
.sidebar {
    width: 380px;
    padding: 55px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: relative;
    background: #fff;
    display: none;
}

.logo-wrapper {
    margin-bottom: 50px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    color: #000;
    letter-spacing: -0.5px;
}

.logo i {
    font-size: 24px;
}

.sidebar-title {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

/* Steps Container */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    counter-reset: wizard-step;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    counter-increment: wizard-step;
    position: relative;
}

/* Step Icons Wrapper */
.step-icon-wrapper {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #c8d7ee;
    border: 1px solid #c8d7ee;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    position: relative;
    font-size: 11px;
    font-weight: 600;
}

/* Hide existing FontAwesome icons */
.step-icon-wrapper i {
    display: none !important;
}

/* Default number state */
.step-icon-wrapper::after {
    content: counter(wizard-step);
}

/* Completed state */
.step-item.completed .step-icon-wrapper {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: #fff;
}

.step-item.completed .step-icon-wrapper::after {
    content: '\f00c';
    /* Check icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

/* Active state */
.step-item.active .step-icon-wrapper {
    background: transparent;
    border-color: transparent;
    color: transparent;
}

.step-item.active .step-icon-wrapper::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--primary-light);
    animation: spin 8s linear infinite;
}

.step-item.active .step-icon-wrapper::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-light);
    border-radius: 50%;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Labels */
.step-info {
    display: flex;
    flex-direction: column;
}

.step-label {
    font-weight: 400;
    font-size: 14px;
    color: #a6b0bb;
    transition: color 0.3s;
}

.step-item.active .step-label {
    color: #000;
    font-weight: 600;
    font-size: 16px;
}

.step-item.completed .step-label {
    color: var(--text-dark);
}

.step-sublabel {
    display: none !important;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 0;
    background: transparent;
    display: flex;
    justify-content: center;
    min-height: 70vh;
}

.wizard-grid-container {
    width: 100%;

    margin: 0 auto;
    padding: 50px 40px;
}

.wizard-grid {
    display: grid;
    grid-template-columns: 5fr 8fr;
    gap: 90px;
    align-items: flex-start;
}

/* Sol Grid: Bilgi */
.wizard-info-side {
    padding-right: 0;
    position: sticky;
    top: 60px;
    display: flex;
    align-items: flex-start;

}

.info-title {
    font-size: 42px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 24px;
    letter-spacing: -1.2px;
}

.info-title .highlight {
    color: #2563eb;
    position: relative;
    display: inline-block;
    font-weight: 800;
}

.info-desc {
    font-size: 18px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 40px;
}

.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.feature-pill {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.feature-pill i {
    color: #22c55e;
    font-size: 16px;
}

/* Sağ Grid: Form */
.wizard-form-side {
    width: 100%;
}

.form-card {
    background: #fff;


    padding: 30px;


}

.content-wrapper {
    width: 100%;
}

@media (max-width: 1024px) {
    .wizard-grid-container {
        padding: 40px 5px;
    }

    .wizard-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .wizard-info-side {
        padding-right: 0;
        text-align: center;
        position: static;
        height: auto;
        padding-top: 0;
        margin-bottom: 20px;
        display: none;
    }

    .feature-pills {
        justify-content: center;
    }

    .info-title {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .info-desc {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .form-card {
        padding: 30px 2px;
        border-radius: 6px;
    }

    .customer-type-container {
        flex-direction: column !important;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .input-group-text {
        padding: 0 12px !important;
        font-size: 14px !important;
    }
}

/* Header */
.wizard-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
}

.header-title {
    font-size: 38px;
    font-weight: 600;
    color: #000;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 12px;
}

.header-subtitle {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

.header-subtitle a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.header-subtitle a:hover {
    border-color: var(--primary-light);
}

/* Radio-style Selection Cards */
.card-grid,
.card-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-list .selection-card {
    width: 100%;
}

.selection-card {
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 15px;
    padding-left: 16px;
    cursor: pointer;
    background: #fff;
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 14px;
}

.selection-card:hover {
    border-color: var(--border-dark);
    background: #fafafa;
}

.selection-card.selected {
    border-color: var(--primary-light);
    background: #f6f9fd;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* Pseudo Radio Button */
.selection-card::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 19px;
    height: 19px;
    border: 1.5px solid var(--border-dark);
    border-radius: 50px;
    /* Square with slight roundness */
    background: #fff;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0;
    /* Hide icon when not selected */
    color: #fff;
    display: none;
}

.selection-card.selected .selected-badge {
    display: flex !important;
}

.selected-badge {
    display: none !important;
    position: absolute;
    top: -8px;
    right: 12px;
    background: var(--primary-light);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25);
    z-index: 5;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Card Typography */
.card-name {
    font-size: 22px;
    font-weight: 600;
    color: #000;
    margin-bottom: 2px !important;
}

.card-desc {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.4;
    margin-bottom: 0 !important;
}

/* Card Specific Layouts */
.package-card {
    min-height: 90px;
    padding: 18px 15px 18px 20px !important;
}

.package-card-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.domain-type-btn,
.customer-type-btn {

    min-height: 50px;
}

.card-price {
    font-size: 18px;
    font-weight: 500;
    color: #000;
    letter-spacing: -0.5px;
}

.card-market-price {
    font-size: 11px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-bottom: -2px;
}

.card-monthly {
    font-size: 12px;
    color: var(--text-gray);
}

/* Buttons */
.btn-container {
    margin-top: 40px;
    display: flex;
    gap: 12px;
}

.btn {
    height: 42px;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-next {
    background: #000;
    color: #fff;
}

.btn-next:hover {
    background: #222;
    color: #fff;
}

.btn-next:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

.btn-prev {
    background: #fff;
    color: #000;
    border: 1px solid var(--border-dark);
}

.btn-prev:hover {
    background: #f8fafc;
}

/* Form Groups */
.form-group {
    background: #ffffff00;
    border-radius: 6px;
    margin-bottom: 15px;
    /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.036);*/
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.form-col {
    flex: 1;
}

.form-error {
    color: #094bff;
    font-size: 12px;
    margin-top: 6px;
    margin-left: 5px;
    display: none;
}

.form-error.show {
    display: block;
}

.form-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #15171a;
    margin-bottom: 14px;
    margin-left: 5px
}

.form-input {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid var(--border-dark);
    border-radius: 6px;
    font-size: 16px;
    color: #434343;
    background: #fff;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-light);
}

/* Floating Labels */
.floating-group {
    position: relative;
    margin-bottom: 5px;
}

.floating-group .form-input {
    height: 56px;
    padding: 20px 14px 6px 14px;
    /* Extra top padding for floating label */
    background: #fff;
    border-radius: 8px;
}

.floating-group .form-label {
    position: absolute;
    top: 17px;
    left: 14px;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    color: #94a3b8;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
}

.floating-group .form-input:focus~.form-label,
.floating-group .form-input:not(:placeholder-shown)~.form-label {
    top: 6px;
    font-size: 11px;
    font-weight: 500;
    color: #7d88ae;
}

.floating-group .form-input::placeholder {
    color: transparent;
    transition: color 0.2s;
}

.floating-group .form-input:focus::placeholder {
    color: #cbd5e1;
}

.floating-group.input-group {
    display: flex;
    align-items: stretch;
    height: 56px;
    background: #fff;
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    overflow: hidden;
}

.floating-group.input-group .form-input {
    border: none;
    flex: 1;
    height: 100%;
}

.floating-group.input-group .form-label {
    top: 17px;
    left: 14px;
}

/* Adjust label when floating in input-group */
.floating-group.input-group .form-input:focus~.form-label,
.floating-group.input-group .form-input:not(:placeholder-shown)~.form-label {
    top: 6px;
}

.floating-group.input-group .form-label {
    max-width: calc(100% - 140px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.input-group-text {
    padding: 0 20px;
    display: flex !important;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 16px;
    font-weight: 500;
    background: #f8fafc;
    border-left: 1px solid var(--border);
    position: relative;
    z-index: 10;
}

.input-group-text i {
    font-size: 18px !important;
    min-width: 20px;
}

/* Hide Unnecessary Elements */
.selection-summary,
.step-progress-label,
.sidebar-footer,
.sidebar-desc {
    display: none !important;
}

.popular-badge {
    display: block !important;
    position: absolute;
    top: -10px;
    left: 15px;
    background: #1f4ae9;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(31, 74, 233, 0.2);
}

/* Step Animations */
.step-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .content-wrapper {
        padding: 0 20px;
    }
}

@media (max-width: 1024px) {
    body {
        height: auto;
        overflow: auto;
    }

    .wizard-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        padding: 40px 20px;
    }

    .logo-wrapper {
        margin-bottom: 40px;
    }

    .main-content {
        padding: 40px 20px;
    }

    .steps-container {
        flex-direction: row;
        overflow-x: auto;
        gap: 12px;
    }

    .step-item {
        min-width: 150px;
    }
}

/* Contracts & Warning */
.contract-box {
    margin-bottom: 12px;
    padding: 0;
    border: none;
    background: transparent;
    transition: all 0.2s ease;
}

.contract-box:hover {
    background: transparent;
}

.contract-label {
    display: flex;
    gap: 15px;
    cursor: pointer;
    align-items: flex-start;
}

.contract-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    cursor: pointer;
}

.contract-content {
    flex: 1;
}

.contract-title {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #0f172a;
    margin-bottom: 4px;
}

.contract-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.contract-desc a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
}

.contract-desc a:hover {
    text-decoration: underline;
}

.warning-box {
    margin-top: 20px;
    padding: 12px 16px;
    background: #fff7ed;
    border: 1px solid #ffedd5;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    align-items: center;
    color: #9a3412;
    font-size: 13px;
    font-weight: 500;
}

.warning-box i {
    color: #ea580c;
    font-size: 16px;
}