/* ============================================
   FORM STYLE - BUAT PENGADUAN
   ============================================ */

/* Hero Section */
.form-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 60px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.form-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.3), transparent 70%);
    border-radius: 50%;
}

.form-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(231, 76, 60, 0.2), transparent 70%);
    border-radius: 50%;
}

.form-hero .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.form-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.form-hero p {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
}

/* Form Container */
.form-container {
    max-width: 1000px;
    margin: -50px auto 60px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 40px;
    position: relative;
    z-index: 5;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #e7f3ff, #d1ecf1);
    border-left: 4px solid var(--secondary-color);
    padding: 20px 24px;
    margin-bottom: 32px;
    border-radius: var(--radius-sm);
    color: #0c5460;
}

.info-box h6 {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-box ul li {
    font-size: 0.85rem;
    padding: 4px 0 4px 20px;
    position: relative;
    line-height: 1.5;
}

.info-box ul li::before {
    content: '•';
    position: absolute;
    left: 6px;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Form Section */
.form-section {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0;
    margin-bottom: 24px;
    background: white;
    overflow: hidden;
    transition: var(--transition);
}

.form-section:hover {
    box-shadow: var(--shadow-sm);
}

.section-title {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 16px 24px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.section-title i {
    color: var(--secondary-color);
}

.section-title::after {
    display: none;
}

.form-section-body {
    padding: 24px;
}

/* Form Controls */
.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-color);
    margin-bottom: 8px;
    display: block;
}

.form-label.required::after {
    content: ' *';
    color: var(--accent-color);
    font-weight: 700;
}

.form-control,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: var(--transition);
    background: white;
    color: var(--text-color);
    font-family: inherit;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
    outline: none;
}

.form-control::placeholder {
    color: #adb5bd;
}

textarea.form-control {
    resize: vertical;
    min-height: 90px;
}

/* Additional Form Animation */
.additional-form {
    display: none;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subsection Title */
.subsection-title {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 700;
    padding-bottom: 8px;
    margin-bottom: 16px;
    margin-top: 24px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subsection-title:first-child {
    margin-top: 0;
}

.subsection-title i {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Alert dalam Form */
.form-alert-info {
    background: #d1ecf1;
    border-left: 4px solid var(--secondary-color);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-top: 12px;
    font-size: 0.85rem;
    color: #0c5460;
    line-height: 1.6;
}

.form-alert-info strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 6px;
}

.form-alert-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.form-alert-info ul li {
    padding: 3px 0 3px 18px;
    position: relative;
}

.form-alert-info ul li::before {
    content: '•';
    position: absolute;
    left: 4px;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Submit Buttons */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid var(--border-color);
    flex-wrap: wrap;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    letter-spacing: 0.3px;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary-modern {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary-modern:hover {
    background: linear-gradient(135deg, var(--secondary-dark), var(--primary-color));
    color: white;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.btn-outline-modern {
    background: white;
    border: 2px solid var(--border-color);
    color: var(--text-color);
}

.btn-outline-modern:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    background: rgba(52, 152, 219, 0.05);
}

/* Success Alert */
.alert-success-modern {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-left: 4px solid var(--success-color);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    color: #155724;
}

.alert-success-modern i {
    font-size: 1.5rem;
    color: var(--success-color);
    flex-shrink: 0;
}

.alert-success-modern h5 {
    margin: 0 0 6px;
    font-weight: 700;
    color: #155724;
}

.alert-success-modern small {
    color: #155724;
    opacity: 0.85;
}

/* File Input */
.file-input-wrapper {
    position: relative;
    display: block;
}

.form-control[type="file"] {
    padding: 10px 14px;
    cursor: pointer;
}

.form-control[type="file"]::file-selector-button {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    margin-right: 12px;
    transition: var(--transition);
}

.form-control[type="file"]::file-selector-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

/* Helper Text */
.form-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-hero {
        padding: 40px 20px 60px;
    }
    
    .form-hero h1 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .form-container {
        margin: -30px 16px 40px;
        padding: 24px 20px;
        border-radius: var(--radius-md);
    }
    
    .form-section-body {
        padding: 20px 16px;
    }
    
    .section-title {
        padding: 14px 20px;
    }
    
    .section-title h5 {
        font-size: 0.9rem;
    }
    
    .form-actions {
        flex-direction: column-reverse;
    }
    
    .btn-modern {
        width: 100%;
        justify-content: center;
    }
    
    .form-hero h1 i {
        display: none;
    }
}