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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #ffffff 0%, #f2f2f2 100%);
    min-height: 100vh;
    padding: 20px;
}

/* Survey Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: fadeIn 0.5s ease-in;
}

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

/* Header */
header {
    background: linear-gradient(135deg, #ffffff 0%, #e5e5e5 100%);
    color: #333; /* ⬅ teks jadi gelap */
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

header h1 {
    color: #222;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 600;
}

header h1::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #bdbdbd;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Progress Bar */
.progress-container {
    background: #ddd;
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #9e9e9e, #bdbdbd);
    border-radius: 10px;
    transition: width 0.4s ease;
}

.progress-text {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 10px;
    color: #555;
}

/* Main Content */
main {
    padding: 40px;
}

.question-container {
    margin-bottom: 30px;
}

.question-container label {
    display: block;
    margin-bottom: 15px;
}

.question-number {
    display: block;
    font-size: 14px;
    color: #66BB6A;
    font-weight: 600;
    margin-bottom: 10px;
}

.question-text {
    display: block;
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    font-weight: 500;
}

textarea {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Buttons */
.button-container {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

.btn {
    padding: 12px 30px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-success {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

/* Footer */
footer {
    background: #f5f5f5;
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Results Page */
.results-container {
    max-width: 1600px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.results-header {
    background: linear-gradient(135deg, #f8f8f8 0%, #e0e0e0 100%);
    color: #333; /* ⬅ teks tidak putih lagi */
    padding: 40px;
    text-align: center;
}

.results-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
        color: #222;
}

.subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
        color: #555;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-buttons .btn {
    flex: 0 0 auto;
    min-width: 150px;
}

/* BMC Canvas Layout */
.bmc-canvas {
    padding: 30px;
    background: #f9f9f9;
}

.bmc-row {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.row-top {
    grid-template-columns: 1fr 2fr 2fr 1fr;
    grid-template-areas: 
        "partnerships middle-col right-col segments";
}

.row-bottom {
    grid-template-columns: 1fr 1fr;
}

.bmc-block {
    background: white;
    border: 3px solid;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bmc-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.block-header {
    color: white;
    padding: 15px;
    text-align: center;
}

.block-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 5px;
}

.block-header h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.block-subtitle {
    font-size: 12px;
    opacity: 0.9;
    font-weight: normal;
}

.block-content {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.answer-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.answer-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.answer-item strong {
    color: #667eea;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.answer-item p {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

/* Specific block positioning */
.block-key-partnerships {
    grid-area: partnerships;
}

.bmc-middle-column {
    grid-area: middle-col;
    display: grid;
    grid-template-rows: auto auto auto auto;
    gap: 20px;
}

.bmc-right-column {
    grid-area: right-col;
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

.block-customer-segments {
    grid-area: segments;
}

/* Results Footer */
.results-footer {
    background: #f5f5f5;
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.results-footer p {
    margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .row-top {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
            "partnerships segments"
            "middle-col middle-col"
            "right-col right-col";
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        border-radius: 10px;
    }

    header {
        padding: 20px;
    }

    header h1 {
        font-size: 22px;
    }

    main {
        padding: 20px;
    }

    .question-text {
        font-size: 16px;
    }

    .button-container {
        flex-direction: column;
    }

    .results-header h1 {
        font-size: 28px;
    }

    .row-top {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "partnerships"
            "middle-col"
            "right-col"
            "segments";
    }

    .row-bottom {
        grid-template-columns: 1fr;
    }

    .bmc-middle-column,
    .bmc-right-column {
        grid-template-rows: auto;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
    }
}

/* Custom Scrollbar */
.block-content::-webkit-scrollbar {
    width: 8px;
}

.block-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.block-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.block-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .results-container {
        box-shadow: none;
    }

    .action-buttons {
        display: none;
    }

    .bmc-block {
        page-break-inside: avoid;
    }
}
