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

:root {
    --logo-blue: #10439F;
    --logo-pink: #F70D97;
    --bg-main: #FDFEFE;
    --bg-subtle: #F8F9FA; /* Bootstrap light */
    --text-dark: #212529;
    --text-light: #6C757D;
    --border-color: #E0E0E0;
    --shadow-soft: 0 3px 10px rgba(0, 0, 0, 0.05);
    --radius-base: 6px;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --transition-default: all 0.25s ease-in-out;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: 70px; /* Navbar height */
}

.min-navbar {
    background-color: var(--bg-main);
    box-shadow: var(--shadow-soft);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.min-navbar .navbar-brand img {
    max-height: 40px;
}

.min-header {
    background-color: var(--bg-subtle);
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}
.min-header .header-title {
    font-weight: 600;
    font-size: 2.2rem;
    color: var(--logo-blue);
    margin-bottom: 8px;
}
.min-header .header-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.min-content-area { padding-bottom: 40px; }

.min-section-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 25px;
    font-size: 1.8rem;
    text-align: center;
}
.min-section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--logo-pink);
    margin: 6px auto 0;
    border-radius: 1.5px;
}

.min-survey-card {
    background-color: white;
    border-radius: var(--radius-base);
    box-shadow: var(--shadow-soft);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition-default);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.min-survey-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.07);
    border-color: var(--logo-blue);
}
.min-survey-card .card-category {
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    background-color: var(--logo-pink);
    padding: 3px 8px;
    border-radius: var(--radius-base);
    display: inline-block;
    margin-bottom: 12px;
}
.min-survey-card .card-survey-title a { text-decoration: none; }
.min-survey-card .card-survey-title h5 {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.25rem;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}
.min-survey-card .card-survey-title a:hover h5 { color: var(--logo-blue); }
.min-survey-card .card-survey-description {
    color: var(--text-light);
    font-size: 0.9rem;
    flex-grow: 1;
    margin-bottom: 15px;
}
.min-survey-card-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.min-survey-card-footer .info {
    font-size: 0.8rem;
    color: var(--text-light);
}
.min-survey-card-footer .info i { color: var(--logo-blue); margin-right: 4px; }
.btn-action-survey {
    font-weight: 500;
    background-color: var(--logo-blue);
    border: 1px solid var(--logo-blue);
    color: white;
    padding: 7px 18px;
    border-radius: var(--radius-base);
    transition: var(--transition-default);
    font-size: 0.85rem;
    text-decoration: none;
}
.btn-action-survey:hover {
    background-color: #0d3a8c; /* Darker blue */
    border-color: #0d3a8c;
    color: white;
}
.btn-action-survey.disabled {
    background-color: #adb5bd;
    border-color: #adb5bd;
    cursor: not-allowed;
}

.min-survey-form-container {
    background-color: white;
    padding: 25px;
    border-radius: var(--radius-base);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}
.min-survey-progress {
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 20px;
}
.min-survey-progress .progress-fill {
    height: 100%;
    width: 0%; /* JS ilə */
    background-color: var(--logo-pink);
    border-radius: 3px;
    transition: width 0.3s ease;
}
.min-question-block {
    padding: 15px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #f1f1f1; /* Lighter border between questions */
}
.min-question-block:last-child { border-bottom: none; margin-bottom: 0;}
.min-question-block .q-text {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 1.05rem;
    margin-bottom: 12px;
}
.min-question-block .q-text .req-star { color: var(--logo-pink); font-weight: bold; margin-left: 2px; }

/* Standard Bootstrap form controls with slight customization */
.form-control, .form-select {
    border-radius: var(--radius-base);
    border-color: var(--border-color);
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--logo-blue);
    box-shadow: 0 0 0 0.2rem rgba(16, 67, 159, 0.2);
}
.form-check { margin-bottom: 0.5rem; }
.form-check-input {
    width: 1.1em; height: 1.1em;
    margin-top: 0.25em;
    border-color: #b0b0b0;
}
.form-check-input:checked {
    background-color: var(--logo-blue);
    border-color: var(--logo-blue);
}
.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(16, 67, 159, 0.2);
}
.form-check-label {
    font-size: 0.95rem;
    padding-left: 0.4em;
}

.min-stars-rating {
    display: flex;
    /* Removed row-reverse for left-to-right selection */
    margin: 5px 0;
}
.min-stars-rating input[type="radio"] { display: none; }
.min-stars-rating label {
    font-size: 1.8em;
    color: #ced4da;
    margin-right: 3px;
    cursor: pointer;
    transition: color 0.2s ease;
}
/* Corrected Star Logic: Color stars up to the hovered/checked one */
.min-stars-rating label:hover,
.min-stars-rating label:hover ~ label, /* For hover effect from right to left */
.min-stars-rating input[type="radio"]:checked ~ label {
    color: #ced4da; /* Default for those after checked/hovered */
}
.min-stars-rating input[type="radio"]:checked + label, /* The selected star */
.min-stars-rating input[type="radio"]:checked + label ~ label, /* Stars after selected */
.min-stars-rating label:hover { /* The hovered star and those before it */
     color: var(--logo-pink);
}
/* Specific JS will handle coloring stars before the hovered/selected one */


.min-submit-area { text-align: center; margin-top: 25px; padding-top: 15px; border-top: 1px solid var(--border-color); }
.btn-submit-min-survey {
    font-weight: 600;
    background-color: var(--logo-blue);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: var(--radius-base);
    font-size: 1rem;
    transition: var(--transition-default);
}
.btn-submit-min-survey:hover {
    background-color: #0d3a8c;
    transform: scale(1.02);
}

.min-thankyou-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 70px - 70px); /* Adjust based on navbar/header */
    text-align: center;
}
.min-thankyou-box {
    background-color: white;
    padding: 30px;
    border-radius: var(--radius-base);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    max-width: 500px;
}
.min-thankyou-box .thankyou-icon {
    font-size: 3.5rem;
    color: var(--logo-blue); /* Green was better for success: #28a745 */
    margin-bottom: 15px;
}
.min-thankyou-box .thankyou-title {
    font-weight: 600;
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.min-thankyou-box .thankyou-message {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 20px;
}
.min-thankyou-box .actions .btn {
    margin: 5px;
    font-weight: 500;
    padding: 8px 18px;
    font-size: 0.9rem;
    border-radius: var(--radius-base);
}
.min-thankyou-box .actions .btn-primary {
    background-color: var(--logo-blue);
    border-color: var(--logo-blue);
}
.min-thankyou-box .actions .btn-primary:hover { background-color: #0d3a8c; border-color: #0d3a8c; }
.min-thankyou-box .actions .btn-outline-pink {
    border-color: var(--logo-pink);
    color: var(--logo-pink);
}
.min-thankyou-box .actions .btn-outline-pink:hover { background-color: var(--logo-pink); color: white; }

.min-footer {
    background-color: var(--text-dark);
    color: rgba(255,255,255,0.7);
    padding: 20px 0;
    margin-top: 30px;
    text-align: center;
    font-size: 0.85rem;
}
.min-footer a { color: white; text-decoration: none; }
.min-footer a:hover { text-decoration: underline; }

.alert-min-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-base);
    font-size: 0.9rem;
}
.alert-min-info {
    background-color: #cce5ff;
    border-color: #b8daff;
    color: #004085;
}

@media (max-width: 768px) {
    body { padding-top: 60px; }
    .min-header { padding: 30px 15px; }
    .min-header .header-title { font-size: 1.8rem; }
    .min-header .header-subtitle { font-size: 0.95rem; }
    .min-section-title { font-size: 1.5rem; }
}