/* CSS Variables */
:root {
    --kkdm-blue: #143D8D;
    --kkdm-blue-dark: #092B67;
    --kkdm-red: #D5242A;
    --kkdm-white: #FFFFFF;
    --kkdm-bg: #F4F8FC;
    --kkdm-text: #0E2B5C;
    --kkdm-border: #CBD9EB;
    --kkdm-gray: #6B7280;
    --kkdm-light-gray: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --bg-light-blue: #DDEEFF;
    --bg-sky: #EAF4FF;
    --bg-warm: #FFE8D6;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at 15% 20%, rgba(68, 169, 255, 0.25), transparent 35%),
        radial-gradient(circle at 85% 35%, rgba(255, 190, 120, 0.20), transparent 35%),
        linear-gradient(135deg, #dceeff 0%, #edf7ff 35%, #f7fbff 55%, #e6f2ff 100%);
    color: var(--kkdm-text);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 10% 20%, rgba(20, 61, 141, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(20, 61, 141, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.05), rgba(255,255,255,0.15));
    pointer-events: none;
    z-index: 1;
}

/* Container */
.container {
    max-width: 900px;
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(20, 61, 141, 0.08);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(9, 43, 103, 0.12);
    padding: 40px;
    position: relative;
    z-index: 2;
    animation: fadeIn 0.6s ease-out;
}

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

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 120px;
    background: radial-gradient(circle at top, rgba(66, 153, 225, 0.08), transparent 45%);
    pointer-events: none;
    z-index: -1;
}

.logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
}

.header-text {
    margin-bottom: 20px;
}

.polling-destinasi {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--kkdm-blue);
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.employee-gathering {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: var(--kkdm-red);
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.company-badge {
    display: inline-block;
    background: var(--kkdm-blue);
    color: var(--kkdm-white);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.decoration {
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0.5;
    z-index: 1;
}

.plane-icon {
    width: 40px;
    height: 40px;
    color: var(--kkdm-blue);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.dashed-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, var(--kkdm-blue) 50%, transparent 50%);
    background-size: 2px 10px;
    margin-left: 19px;
    margin-top: 5px;
}

/* Additional Travel Decorations */
.flight-path {
    position: fixed;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.flight-path-1 {
    top: 10%;
    right: 15%;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--kkdm-blue), transparent);
    background-size: 20px 100%;
}

.flight-path-2 {
    bottom: 20%;
    left: 10%;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--kkdm-red), transparent);
    background-size: 15px 100%;
}

/* Page Background Decorations */
.page-decoration-left {
    position: fixed;
    left: 0;
    top: 0;
    width: 200px;
    height: 100%;
    background: linear-gradient(90deg, rgba(20, 61, 141, 0.03) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.page-decoration-right {
    position: fixed;
    right: 0;
    top: 0;
    width: 200px;
    height: 100%;
    background: linear-gradient(-90deg, rgba(255, 190, 120, 0.04) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* Abstract Landmark Silhouettes */
.landmark-left {
    position: fixed;
    left: -50px;
    bottom: 100px;
    width: 150px;
    height: 200px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.landmark-right {
    position: fixed;
    right: -50px;
    bottom: 150px;
    width: 150px;
    height: 180px;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

/* Cloud Decorations */
.cloud-decoration {
    position: fixed;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.cloud-1 {
    top: 15%;
    left: 5%;
    width: 120px;
    height: 60px;
}

.cloud-2 {
    top: 25%;
    right: 8%;
    width: 100px;
    height: 50px;
}

.cloud-3 {
    top: 60%;
    left: 3%;
    width: 80px;
    height: 40px;
}

.cloud-4 {
    top: 70%;
    right: 5%;
    width: 90px;
    height: 45px;
}

/* Description */
.description {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.description p {
    font-size: 1rem;
    color: var(--kkdm-text);
    line-height: 1.8;
}

/* Duration Info */
.duration-info {
    margin-bottom: 40px;
}

.duration-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--kkdm-white);
    border: 2px solid var(--kkdm-blue);
    border-radius: 15px;
    padding: 20px 30px;
    gap: 20px;
}

.duration-left,
.duration-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.icon-circle {
    width: 50px;
    height: 50px;
    background: var(--kkdm-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-circle svg {
    width: 24px;
    height: 24px;
    color: var(--kkdm-white);
}

.duration-text {
    display: flex;
    flex-direction: column;
}

.duration-label {
    font-size: 0.85rem;
    color: var(--kkdm-gray);
    font-weight: 500;
}

.duration-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--kkdm-red);
}

/* Section Heading */
.section-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--kkdm-blue);
    margin-bottom: 20px;
    text-align: center;
}

/* Destination Section */
.destination-section {
    margin-bottom: 40px;
}

.destination-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.destination-card {
    background: var(--kkdm-white);
    border: 2px solid var(--kkdm-border);
    border-radius: 15px;
    padding: 15px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.destination-card:hover {
    border-color: var(--kkdm-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.destination-card.active {
    border-color: var(--kkdm-blue);
    border-width: 3px;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #F4F8FC 0%, #E8F0F8 100%);
}

.card-number {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    background: var(--kkdm-blue);
    color: var(--kkdm-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 2;
}

.card-image {
    width: 100%;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    background: var(--kkdm-bg);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.destination-card:hover .card-image img {
    transform: scale(1.05);
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F4F8FC 0%, #E8F0F8 100%);
}

.card-icon svg {
    width: 60px;
    height: 60px;
    color: var(--kkdm-blue);
}

.card-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--kkdm-blue);
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.3;
}

.radio-button {
    display: flex;
    justify-content: center;
}

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

.radio-button label {
    width: 30px;
    height: 30px;
    border: 3px solid var(--kkdm-border);
    border-radius: 50%;
    cursor: pointer;
    display: block;
    transition: var(--transition);
    position: relative;
}

.radio-button label::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 16px;
    height: 16px;
    background: var(--kkdm-blue);
    border-radius: 50%;
    transition: var(--transition);
}

.radio-button input[type="radio"]:checked + label {
    border-color: var(--kkdm-blue);
}

.radio-button input[type="radio"]:checked + label::after {
    transform: translate(-50%, -50%) scale(1);
}

.destination-card.active .radio-button label {
    border-color: var(--kkdm-blue);
}

.destination-card.active .radio-button label::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Proposal Section */
.proposal-section {
    margin-bottom: 30px;
}

.proposal-container {
    background: var(--kkdm-bg);
    border-radius: 15px;
    padding: 20px;
}

.proposal-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--kkdm-text);
}

.pencil-icon {
    width: 20px;
    height: 20px;
    color: var(--kkdm-blue);
}

.proposal-input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--kkdm-border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.proposal-input:focus {
    outline: none;
    border-color: var(--kkdm-blue);
    box-shadow: 0 0 0 3px rgba(20, 61, 141, 0.1);
}

.proposal-input:disabled {
    background: var(--kkdm-light-gray);
    cursor: not-allowed;
    opacity: 0.6;
}

.proposal-input:not(:disabled) {
    background: var(--kkdm-white);
}

/* Examples Section */
.examples-section {
    margin-bottom: 40px;
}

.examples-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--kkdm-text);
    margin-bottom: 15px;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.example-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px;
    background: var(--kkdm-bg);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.example-item:hover {
    background: var(--kkdm-blue);
    color: var(--kkdm-white);
}

.example-item:hover svg {
    color: var(--kkdm-white);
}

.example-item svg {
    width: 30px;
    height: 30px;
    color: var(--kkdm-blue);
    transition: var(--transition);
}

.example-item span {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Participant Section */
.participant-section {
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--kkdm-text);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.required {
    color: var(--kkdm-red);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--kkdm-border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--kkdm-blue);
    box-shadow: 0 0 0 3px rgba(20, 61, 141, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Submit Section */
.submit-section {
    margin-bottom: 30px;
}

.submit-btn {
    width: 100%;
    padding: 18px 30px;
    background: var(--kkdm-blue);
    color: var(--kkdm-white);
    border: none;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--kkdm-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.submit-btn svg {
    width: 24px;
    height: 24px;
}

/* Results Section */
.results-section {
    margin-bottom: 30px;
    text-align: center;
}

.view-results-btn {
    display: inline-block;
    background: transparent;
    color: var(--kkdm-blue);
    border: 2px solid var(--kkdm-blue);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.view-results-btn:hover {
    background: var(--kkdm-blue);
    color: var(--kkdm-white);
    text-decoration: none;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
}

.footer-card {
    background: var(--kkdm-blue);
    color: var(--kkdm-white);
    padding: 20px 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.footer-icon svg {
    width: 100%;
    height: 100%;
    color: var(--kkdm-white);
}

.footer-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.thank-you {
    font-family: 'Pacifico', cursive;
    font-size: 1.5rem;
    color: var(--kkdm-blue);
    margin-bottom: 10px;
}

.footer-decoration {
    width: 100%;
    height: 80px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.footer-decoration svg {
    width: 100%;
    height: 100%;
}

/* Footer Wave Effect */
.footer-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(90deg, var(--kkdm-blue) 0%, var(--kkdm-blue-dark) 50%, var(--kkdm-blue) 100%);
    opacity: 0.1;
    clip-path: polygon(0 50%, 25% 30%, 50% 50%, 75% 30%, 100% 50%, 100% 100%, 0 100%);
}

.footer-red-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--kkdm-red) 0%, transparent 50%, var(--kkdm-red) 100%);
    opacity: 0.6;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: var(--kkdm-white);
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content-large {
    max-width: 600px;
}

.modal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: #10B981;
}

.modal-icon svg {
    width: 100%;
    height: 100%;
}

.modal-icon-warning {
    color: var(--kkdm-red);
}

.modal h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--kkdm-blue);
    margin-bottom: 15px;
}

.modal p {
    color: var(--kkdm-text);
    margin-bottom: 20px;
    line-height: 1.6;
}

#user-choice {
    font-size: 1.1rem;
}

#choice-value {
    font-weight: 700;
    color: var(--kkdm-blue);
}

.modal-btn {
    background: var(--kkdm-blue);
    color: var(--kkdm-white);
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.modal-btn:hover {
    background: var(--kkdm-blue-dark);
}

.modal-btn-secondary {
    background: var(--kkdm-gray);
}

.modal-btn-secondary:hover {
    background: var(--kkdm-blue-dark);
}

.modal-btn-danger {
    background: var(--kkdm-red);
}

.modal-btn-danger:hover {
    background: #B91C1C;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Results Modal Styles */
.results-stats {
    background: var(--kkdm-bg);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
}

.total-respondents {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    font-weight: 600;
    color: var(--kkdm-text);
}

.stat-value {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: var(--kkdm-blue);
}

.results-bars {
    margin-bottom: 25px;
}

.result-item {
    margin-bottom: 20px;
}

.result-label {
    font-weight: 600;
    color: var(--kkdm-text);
    margin-bottom: 8px;
}

.result-bar-container {
    background: var(--kkdm-light-gray);
    border-radius: 10px;
    height: 30px;
    overflow: hidden;
    margin-bottom: 8px;
}

.result-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--kkdm-blue) 0%, var(--kkdm-blue-dark) 100%);
    border-radius: 10px;
    transition: width 0.5s ease-out;
}

.result-count {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--kkdm-gray);
}

.result-percent {
    font-weight: 700;
    color: var(--kkdm-blue);
}

.proposals-list {
    background: var(--kkdm-bg);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
}

.proposals-list h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--kkdm-blue);
    margin-bottom: 15px;
}

#proposals-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.proposal-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--kkdm-white);
    border-radius: 8px;
    font-size: 0.9rem;
}

.proposal-item .count {
    font-weight: 700;
    color: var(--kkdm-blue);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 30px;
    }

    .polling-destinasi {
        font-size: 2rem;
    }

    .employee-gathering {
        font-size: 1.5rem;
    }
}

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

    .page-decoration-left,
    .page-decoration-right {
        display: none;
    }

    .landmark-left,
    .landmark-right {
        display: none;
    }

    .cloud-decoration {
        display: none;
    }

    .flight-path {
        display: none;
    }

    .container {
        padding: 25px 20px;
        margin: 10px auto;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(9, 43, 103, 0.08);
    }

    .logo {
        max-width: 150px;
    }

    .polling-destinasi {
        font-size: 1.8rem;
    }

    .employee-gathering {
        font-size: 1.3rem;
    }

    .company-badge {
        font-size: 0.8rem;
        padding: 6px 15px;
    }

    .duration-card {
        flex-direction: column;
        gap: 15px;
    }

    .duration-left,
    .duration-right {
        width: 100%;
    }

    .destination-cards {
        grid-template-columns: 1fr;
    }

    .examples-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-card {
        flex-direction: column;
        text-align: center;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .modal-content-large {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }

    .polling-destinasi {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .employee-gathering {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    .duration-card {
        padding: 15px;
    }

    .icon-circle {
        width: 40px;
        height: 40px;
    }

    .icon-circle svg {
        width: 20px;
        height: 20px;
    }

    .duration-value {
        font-size: 1rem;
    }

    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-card p {
        font-size: 0.85rem;
    }

    .thank-you {
        font-size: 1.2rem;
    }
}

/* Focus States for Accessibility */
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--kkdm-blue);
    outline-offset: 2px;
}

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

    .container {
        box-shadow: none;
    }

    .submit-section,
    .results-section {
        display: none;
    }
}
