/* 
   Color Palette:
   Brown Gradient: #5C3A21 (Dark Brown) to #C1833F (Light Brown) to #F2C94C (Yellowish)
   White: #FFFFFF, #F8F9FA
   Black: #1A1A1A, #333333
*/

:root {
    --primary-dark: #5C3A21;
    --primary: #8B5A2B;
    --primary-light: #C1833F;
    --accent: #F2C94C;
    --text-dark: #1A1A1A;
    --text-light: #555555;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --border-color: #E2E8F0;
    --font-main: 'Poppins', sans-serif;
    --gradient-hero: linear-gradient(135deg, rgba(92, 58, 33, 0.95) 0%, rgba(193, 131, 63, 0.85) 50%, rgba(242, 201, 76, 0.9) 100%);
    --gradient-btn: linear-gradient(to right, #8B5A2B, #C1833F);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--text-dark);
}

p {
    color: var(--text-light);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Header */
.header {
    background-color: var(--bg-white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

.nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav a {
    color: var(--text-dark);
    font-weight: 600;
}

.nav a:hover {
    color: var(--primary-light);
}

/* Buttons */
.btn-outline {
    border: 2px solid var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    color: var(--primary) !important;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--bg-white) !important;
}

.btn-primary {
    background: var(--gradient-btn);
    color: var(--bg-white);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(139, 90, 43, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 90, 43, 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: var(--bg-white);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    border: 2px solid var(--bg-white);
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 0;
    background: var(--gradient-hero), url('https://images.unsplash.com/photo-1590076246479-7977a56cc511?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    background-attachment: fixed;
    color: var(--bg-white);
    text-align: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--bg-white);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-desc {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Regulasi Section */
.info-section {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--primary-light);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-btn);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

/* Form Section */
.form-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.form-wrapper {
    background-color: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.form-header {
    background: var(--primary-dark);
    color: var(--bg-white);
    padding: 2rem 3rem;
    text-align: center;
    border-bottom: 5px solid var(--accent);
}

.form-header h2 {
    color: var(--bg-white);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}

.pengaduan-form {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group-row {
    display: flex;
    gap: 1.5rem;
}

.w-50 {
    flex: 1;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.help-text {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-style: italic;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    background-color: #FAFAFA;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 90, 43, 0.1);
    background-color: var(--bg-white);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 2rem;
}

.checkbox-group input {
    margin-top: 4px;
    accent-color: var(--primary);
}

.checkbox-group label {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-light);
}

.btn-submit {
    width: 100%;
    background: var(--primary-dark);
    color: var(--bg-white);
    border: none;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(92, 58, 33, 0.3);
}

/* Alert Box */
.alert {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    margin: 2rem 3rem 0;
    border: 1px solid #c3e6cb;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.alert.hidden {
    display: none;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 3rem 0 1rem;
    text-align: center;
}

.footer-info h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.footer-info p {
    color: #AAA;
}

.footer-copyright {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #777;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .form-group-row {
        flex-direction: column;
        gap: 0;
    }
    
    .nav ul {
        display: none; /* simple mobile nav hide for now */
    }
    
    .pengaduan-form {
        padding: 2rem 1.5rem;
    }
}
