/**
 * Custom Styles for Digital Market Survey
 */

/* ===== Font Face Declarations ===== */
@font-face {
    font-family: 'BarlowCondensedRegular';
    src: url('../fonts/BarlowCondensed-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BarlowCondensedMedium';
    src: url('../fonts/BarlowCondensed-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BarlowCondensedSemiBold';
    src: url('../fonts/BarlowCondensed-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* ===== CSS Variables ===== */
:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #06b6d4;
    --accent-color: #f59e0b;
    --dark-bg: #0f172a;
    --card-bg: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --success-color: #10b981;
    --error-color: #ef4444;
    --gradient-start: #4f46e5;
    --gradient-end: #06b6d4;
    --font-regular: 'BarlowCondensedRegular', 'Segoe UI', Tahoma, sans-serif;
    --font-medium: 'BarlowCondensedMedium', 'Segoe UI', Tahoma, sans-serif;
    --font-semibold: 'BarlowCondensedSemiBold', 'Segoe UI', Tahoma, sans-serif;
    --Helvetica: 'Helvetica', 'Segoe UI', Tahoma, sans-serif;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-regular);
    /* background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1a2e 100%); */
    background-color: #fff;
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
}

.main-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 20px 0;
}

/* ===== Left Column - Info Section ===== */
.info-section {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.info-section h1 {
    font-size: 48px;
    letter-spacing: 1px;
    line-height: 63px;
    text-transform: none;
    color: #000;
    font-weight: 600;
}

.info-section .lead {
    font-size: 1.2rem;
    color: var(--dark-bg);
    margin-bottom: 30px;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: var(--text-secondary);
}

.feature-list li i,
.feature-list li .icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
    color: white;
}

/* ===== Right Column - Form Section ===== */
.form-section {
    padding: 30px;
}

.form-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
}

.form-card h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.form-card .subtitle {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* ===== Form Styles ===== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control,
.form-select {
    width: 100%;
    padding: 14px 18px;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
}

.form-control::placeholder {
    color: var(--text-secondary);
}

.form-select option {
    background: var(--dark-bg);
    color: var(--text-primary);
}

/* ===== Button Styles ===== */
.btn-primary-custom {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4);
}

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

.btn-primary-custom:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== Quiz Container ===== */
#quiz-container {
    display: none;
}

.quiz-header {
    margin-bottom: 30px;
}

.quiz-header h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 25px;
}

.progress-bar-wrapper {
    height: 8px;
    background: var(--dark-bg);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    border-radius: 10px;
    transition: width 0.4s ease;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Question Styles */
.question-container {
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

.question-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-primary);
}

/* Option Styles */
.option-item {
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.option-item:hover {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.1);
}

.option-item.selected {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.2);
}

.option-item input[type="radio"] {
    display: none;
}

.option-radio {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.option-item.selected .option-radio {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.option-item.selected .option-radio::after {
    content: '✓';
    color: white;
    font-size: 14px;
}

.option-text {
    font-size: 1rem;
    color: var(--text-primary);
}

/* Quiz Navigation */
.quiz-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.btn-nav {
    flex: 1;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-prev {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.btn-prev:hover {
    border-color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-next {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border: none;
    color: white;
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4);
}

.btn-next:disabled,
.btn-prev:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ===== Success Message ===== */
.success-container {
    display: none;
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--success-color), #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 3rem;
    color: white;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

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

.success-container h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--success-color);
}

.success-container p {
    color: white;
    font-size: 20px;
}

/* ===== Error Styles ===== */
.error-message {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.form-control.error,
.form-select.error {
    border-color: var(--error-color);
}

/* ===== Loading Spinner ===== */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Responsive Styles ===== */
@media (max-width: 991px) {
    .info-section {
        padding: 30px 20px;
        text-align: center;
    }

    .info-section h1 {
        font-size: 2.2rem;
    }

    .feature-list li {
        justify-content: center;
    }

    .form-section {
        padding: 20px;
    }

    .form-card {
        padding: 30px 25px;
    }
}

@media (max-width: 576px) {
    .info-section h1 {
        font-size: 1.8rem;
        line-height: 36px;
    }

    .left-logo {
        width: 200px;
    }

    .info-section .lead {
        font-size: 1rem;
    }

    .form-card {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .form-card h2 {
        font-size: 1.5rem;
    }

    .question-text {
        font-size: 1.1rem;
    }

    .quiz-nav {
        flex-direction: column;
    }
}




/* ===== Footer Section ===== */
.footer-section {
    margin-top: 40px;
    padding-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.footer-icon {
    color: #000;
    font-size: 18px;
    transition: opacity 0.2s ease;
    text-decoration: none;
}

.footer-icon:hover {
    opacity: 0.6;
    color: #000;
}

.copyright-text {
    font-family: var(--Helvetica);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-text {
    color: #000;
    font-size: 16px;
}

.footer-link {
    color: #000;
    font-size: 16px;
    text-decoration: underline;
}

.footer-link:hover {
    text-decoration: none;
    color: #333;
}