/* Form Styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: white;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-control:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(100, 149, 237, 0.2);
    background-color: rgba(255, 255, 255, 0.2);
}

select.form-control option {
    background-color: var(--primary-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Question Flow Modal */
.question-flow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 138, 0.98);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    padding: 20px;
}

.question-flow-container.active {
    display: flex;
}

.question-flow-box {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 800px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.mascot-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-right: 15px;
    border: 3px solid var(--accent-color);
    overflow: hidden;
    flex-shrink: 0;
}

.mascot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speech-bubble {
    background: var(--light-color);
    padding: 15px 20px;
    border-radius: 20px;
    position: relative;
    flex: 1;
    border: 2px solid rgba(100, 149, 237, 0.3);
}

.speech-bubble::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid var(--light-color);
}

.speech-bubble::before {
    content: "";
    position: absolute;
    bottom: -13px;
    left: 19px;
    width: 0;
    height: 0;
    border-left: 13px solid transparent;
    border-right: 13px solid transparent;
    border-top: 13px solid rgba(100, 149, 237, 0.3);
}

.question-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.question-subtext {
    font-size: 0.9rem;
    color: #666;
}

.question-content {
    margin: 25px 0;
}

.flow-form-group {
    margin-bottom: 20px;
}

.flow-form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(100, 149, 237, 0.3);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: white;
    color: var(--text-color);
    font-family: inherit;
}

.flow-form-control:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(100, 149, 237, 0.2);
}

.flow-form-control::placeholder {
    color: #999;
}

select.flow-form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%231e3a8a' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    appearance: none;
    padding-right: 40px;
}

textarea.flow-form-control {
    min-height: 120px;
    resize: vertical;
}

.question-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(100, 149, 237, 0.2);
}

.question-progress {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    flex: 1;
}

.question-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(100, 149, 237, 0.1);
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.question-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.flow-buttons {
    display: flex;
    gap: 10px;
}

.btn-flow {
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    white-space: nowrap;
}

.btn-flow-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
}

.btn-flow-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 149, 237, 0.4);
}

.btn-flow-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid rgba(100, 149, 237, 0.3);
}

.btn-flow-secondary:hover {
    background: rgba(100, 149, 237, 0.1);
    transform: translateY(-2px);
}

.btn-flow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.question-counter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
}

.question-counter i {
    font-size: 1.1rem;
}

/* Step animations */
.question-step {
    animation: fadeInQuestion 0.5s ease;
}

@keyframes fadeInQuestion {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Success Screen */
.success-screen {
    text-align: center;
    padding: 20px 0;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--success-color), #059669);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-screen h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.success-screen p {
    color: #666;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.error-message {
    color: #dc2626;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Review Styles */
.review-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(100, 149, 237, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.review-section h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

.review-item {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}

.review-item.full-width {
    grid-column: 1 / -1;
}

.review-label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.review-value {
    color: #333;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.review-value.program-detail {
    background: linear-gradient(135deg, rgba(100, 149, 237, 0.1), rgba(30, 58, 138, 0.1));
    border-color: rgba(100, 149, 237, 0.3);
    color: var(--primary-color);
    font-weight: 600;
}

.empty-value {
    color: #999;
    font-style: italic;
}

.agreement-section {
    background: #fff9e6;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    border: 2px solid #ffd166;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    transform: scale(1.2);
}

.checkbox-group label {
    cursor: pointer;
    line-height: 1.5;
    color: #333;
}

.checkbox-group i {
    color: var(--accent-color);
    margin-right: 8px;
}

.success-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.success-details p {
    margin-bottom: 10px;
}

/* Validation hint */
.validation-hint {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* WhatsApp Button Styles */
.btn-flow-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    justify-content: center;
}

.btn-flow-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #128c7e, #25d366);
}

.whatsapp-instruction {
    margin-top: 20px;
    padding: 15px;
    background: #f0f7ff;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.whatsapp-instruction h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.whatsapp-instruction h4 i {
    color: #25d366;
}

.whatsapp-instruction ol {
    text-align: left;
    margin-left: 20px;
    margin-top: 10px;
}

.whatsapp-instruction li {
    margin-bottom: 8px;
    color: #555;
}

/* Program Cards Style untuk Question Flow */
.program-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.program-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid rgba(100, 149, 237, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    position: relative;
    overflow: hidden;
}

.program-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 20px rgba(100, 149, 237, 0.2);
}

.program-card.selected {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(100, 149, 237, 0.1), rgba(30, 58, 138, 0.05));
    box-shadow: 0 8px 20px rgba(100, 149, 237, 0.25);
}

.program-card-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.program-card-title {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.program-card-description {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* Sub-program Cards dengan Detail */
.program-card-details {
    margin-top: 10px;
    text-align: left;
    width: 100%;
}

.program-card-detail-item {
    font-size: 0.8rem;
    color: #555;
    margin: 3px 0;
    padding-left: 10px;
    border-left: 2px solid var(--accent-color);
    line-height: 1.3;
}

/* Level Cards untuk Online Program */
.level-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin: 15px 0;
}

.level-card {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid rgba(100, 149, 237, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.level-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(100, 149, 237, 0.15);
}

.level-card.selected {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(100, 149, 237, 0.1), rgba(30, 58, 138, 0.05));
    box-shadow: 0 5px 15px rgba(100, 149, 237, 0.2);
}

.level-card-title {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 3px;
}

.level-card-time {
    font-size: 0.8rem;
    color: #666;
}

/* Time Slot Cards untuk Online Program */
.time-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.time-card {
    background-color: white;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid rgba(100, 149, 237, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70px;
}

.time-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(100, 149, 237, 0.15);
}

.time-card.selected {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(100, 149, 237, 0.1), rgba(30, 58, 138, 0.05));
    box-shadow: 0 5px 15px rgba(100, 149, 237, 0.2);
}

.time-card-title {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.time-card-range {
    font-size: 0.8rem;
    color: #666;
}

/* Resume Banner Styles */
.resume-banner {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(100, 149, 237, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 0.5s ease;
}

.resume-banner-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.resume-banner-icon {
    font-size: 1.2rem;
}

.resume-banner-text {
    flex: 1;
}

.resume-banner-title {
    font-weight: bold;
    font-size: 0.95rem;
}

.resume-banner-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
}

.resume-banner-actions {
    display: flex;
    gap: 10px;
}

/* Responsive untuk Question Flow */
@media (max-width: 768px) {
    .question-flow-box {
        padding: 20px;
        margin: 15px;
    }

    .question-header {
        flex-direction: column;
        text-align: center;
    }

    .mascot-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .speech-bubble::after {
        left: 50%;
        transform: translateX(-50%);
        bottom: -10px;
        top: auto;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 10px solid var(--light-color);
    }

    .speech-bubble::before {
        left: 50%;
        transform: translateX(-50%);
        bottom: -12px;
        top: auto;
        border-left: 11px solid transparent;
        border-right: 11px solid transparent;
        border-top: 11px solid rgba(100, 149, 237, 0.3);
    }

    .flow-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-flow {
        width: 100%;
    }

    .question-footer {
        flex-direction: column;
        gap: 15px;
    }

    .question-progress {
        width: 100%;
    }

    .program-cards-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .program-card {
        padding: 15px;
        min-height: 100px;
    }

    .level-cards-container {
        grid-template-columns: 1fr;
    }

    .time-cards-container {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }

    .resume-banner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .resume-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .resume-banner-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .program-card {
        padding: 12px;
        min-height: 90px;
    }

    .program-card-icon {
        font-size: 1.5rem;
    }

    .program-card-title {
        font-size: 1rem;
    }

    .program-card-description {
        font-size: 0.8rem;
    }

    .level-cards-container {
        grid-template-columns: 1fr;
    }

    .time-cards-container {
        grid-template-columns: 1fr;
    }

    .review-grid {
        grid-template-columns: 1fr;
    }
}

/* Style untuk status Google Sheet */
.sheet-success {
  background: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  border: 1px solid #c3e6cb;
  display: flex;
  align-items: center;
  gap: 15px;
}

.sheet-warning {
  background: #fff3cd;
  color: #856404;
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  border: 1px solid #ffeaa7;
  display: flex;
  align-items: center;
  gap: 15px;
}

.sheet-success i, .sheet-warning i {
  font-size: 24px;
  margin-right: 8px;
}

.success-screen .success-icon.success {
  color: #28a745;
  font-size: 64px;
}

.success-screen .success-icon.warning {
  color: #ffc107;
  font-size: 64px;
}

.success-screen .success-icon i {
  margin-bottom: 20px;
}