/* =====================================================
   SISTEM FORMULIR DIGITAL - KABUPATEN LAMPUNG SELATAN
   ===================================================== */

/* ============= RESET & VARIABLES ============= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0093dd;
    --primary-dark: #0077b3;
    --primary-light: #e6f5fb;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============= NAVBAR ============= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    z-index: 1000;
    transition: var(--transition);
}

.navbar-scrolled {
    box-shadow: var(--shadow);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 18px;
}

.nav-logo img {
    height: 45px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============= HERO SECTION ============= */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, #006ba8 100%);
    padding: 150px 0 120px;
    color: #ffffff;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: var(--primary-color);
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    border: 2px solid #ffffff;
    cursor: pointer;
}

.btn-primary:hover {
    background: transparent;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Wave Divider */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-divider path {
    fill: #ffffff;
}

/* ============= FORMULIR SECTION ============= */
.formulir-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 40px;
}

/* Search Bar */
.search-container {
    max-width: 600px;
    margin: 0 auto 50px;
    position: relative;
}

.search-container i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 18px;
}

.search-container input {
    width: 100%;
    padding: 15px 20px 15px 55px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 16px;
    transition: var(--transition);
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 147, 221, 0.1);
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Form Card */
.form-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.form-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon i {
    font-size: 32px;
    color: var(--primary-color);
}

.form-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.card-description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
    flex-grow: 1;
}

.card-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-formulir {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-kehadiran {
    background: #f3e5f5;
    color: #7b1fa2;
}

.badge-survey {
    background: #fff3e0;
    color: #f57c00;
}

.badge-aktif {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-ditutup {
    background: #ffebee;
    color: #c62828;
}

.card-deadline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.card-deadline i {
    color: var(--primary-color);
}

.btn-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary-color);
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-card:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

.btn-card.btn-disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.btn-card.btn-disabled:hover {
    background: #cccccc;
    transform: none;
}

/* ============= FOOTER ============= */
.footer {
    background: var(--primary-color);
    color: #ffffff;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-info {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-info i {
    font-size: 18px;
    margin-top: 3px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 0.8;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: #ffffff;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============= BREADCRUMB ============= */
.breadcrumb-section {
    padding: 110px 0 20px;
    background: #f8f9fa;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-color);
    transition: var(--transition);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ============= FORM HEADER ============= */
.form-header {
    background: var(--primary-light);
    padding: 40px 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 20px;
}

.header-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon i {
    font-size: 40px;
    color: #ffffff;
}

.header-text h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.header-description {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 800px;
}

.header-info {
    display: flex;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.info-item i {
    color: var(--primary-color);
    font-size: 18px;
}

/* ============= FORM SECTION ============= */
.form-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow);
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    transition: var(--transition);
}

.progress-step.active .step-circle {
    background: var(--primary-color);
    color: #ffffff;
}

.progress-step span {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    position: relative;
    top: -15px;
}

/* Form Styles */
.form-section-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

.required {
    color: var(--danger-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 147, 221, 0.1);
}

.error-message {
    display: block;
    color: var(--danger-color);
    font-size: 13px;
    margin-top: 5px;
}

/* Radio & Checkbox Custom */
.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 400;
}

.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
    display: none;
}

.radio-custom,
.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    position: relative;
    transition: var(--transition);
}

.checkbox-custom {
    border-radius: 4px;
}

.radio-label input:checked ~ .radio-custom,
.checkbox-label input:checked ~ .checkbox-custom {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.radio-label input:checked ~ .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
}

.checkbox-label input:checked ~ .checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 12px;
}

/* File Upload */
.file-upload {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.file-upload i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.file-upload p {
    color: var(--text-light);
    margin-bottom: 5px;
}

.browse-text {
    color: var(--primary-color);
    font-weight: 600;
}

.file-preview {
    margin-top: 15px;
    padding: 12px;
    background: var(--primary-light);
    border-radius: 8px;
    display: none;
}

.file-preview.show {
    display: block;
}

/* Rating Stars */
.rating-stars {
    display: flex;
    gap: 10px;
    font-size: 32px;
}

.rating-stars i {
    color: #cccccc;
    cursor: pointer;
    transition: var(--transition);
}

.rating-stars i:hover,
.rating-stars i.active {
    color: #ffc107;
}

/* Form Buttons */
.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.btn-outline {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.form-buttons .btn-primary {
    flex: 1;
    border-radius: 8px;
}

/* ============= MODAL ============= */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10000;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 600;
}

.modal-close {
    width: 35px;
    height: 35px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--danger-color);
    color: #ffffff;
}

.modal-body {
    margin-bottom: 25px;
}

.confirmation-data {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.data-row:last-child {
    border-bottom: none;
}

.data-label {
    font-weight: 600;
    color: var(--text-light);
}

.data-value {
    font-weight: 500;
    color: var(--text-dark);
}

.modal-footer {
    display: flex;
    gap: 15px;
}

.modal-footer .btn-outline,
.modal-footer .btn-primary {
    flex: 1;
}

/* Success Modal */
.modal-success {
    text-align: center;
}

.success-animation {
    margin-bottom: 25px;
}

.checkmark-circle {
    width: 100px;
    height: 100px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.checkmark-circle i {
    font-size: 50px;
    color: #ffffff;
    animation: checkmark 0.5s ease-out 0.3s both;
}

@keyframes checkmark {
    0% {
        opacity: 0;
        transform: rotate(-45deg);
    }
    100% {
        opacity: 1;
        transform: rotate(0deg);
    }
}

.modal-success h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 15px;
}

.ticket-number {
    background: var(--primary-light);
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
}

.ticket-number span {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.ticket-number h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

/* ============= RESPONSIVE ============= */

/* Tablet */
@media (max-width: 992px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero h1 {
        font-size: 36px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header-text h1 {
        font-size: 24px;
    }
    
    .header-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .progress-bar {
        flex-direction: column;
    }
    
    .progress-line {
        display: none;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .nav-logo span {
        font-size: 14px;
    }
    
    .nav-logo img {
        height: 35px;
    }
    
    .form-container {
        padding: 25px;
    }
    
    .modal-content {
        padding: 20px;
    }
}
