/* form-konsultasi.css */
/* public/css/form-konsultasi.css */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Form Container */
.form-container {
    flex: 1;
    width: 100%;
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 24px;
}

.form-header p {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.5;
}

/* Form Layout & Inputs */
.input-group {
    margin-bottom: 20px;
}

.input-row {
    display: flex;
    gap: 20px;
}

.input-row .input-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #34495e;
    font-size: 14px;
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dcdde1;
    border-radius: 8px;
    font-size: 14px;
    color: #2c3e50;
    background-color: #fdfdfd;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

input.is-invalid, textarea.is-invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

textarea {
    resize: vertical;
}

/* Error messages */
.error-msg {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #e74c3c;
}

.alert-error {
    background-color: #fdf0f0;
    border: 1px solid #e74c3c;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #c0392b;
    font-size: 13px;
}

.alert-error ul {
    padding-left: 16px;
}

.alert-error li {
    margin-bottom: 4px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 5px 30px;
    color: #404040;
    box-shadow: 0px 5px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 2000;
}

.logo img {
    height: 100px;
    width: 100px;
    display: inline-block;
}

.nav-links {
    display: flex;
    list-style: none !important;
    gap: 30px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    list-style: none !important;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: gray;
    font-size: 17px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: blue;
}

.nav-toggle { display: none !important; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    width: 30px;
    height: 24px;
    z-index: 2001;
    position: relative;
    margin-left: auto;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #1f2dbf;
    border-radius: 3px;
    transition: transform 0.4s cubic-bezier(.68,-0.55,.27,1.55), opacity 0.3s ease;
}

.nav-toggle:checked + .hamburger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle:checked + .hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle:checked + .hamburger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.theme-toggle {
    border: 1px solid gray;
    background: transparent;
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 16px;
    margin-left: 16px;
    display: inline-flex;
    align-items: center;
    min-width: 52px;
}

.theme-toggle-dark { display: none; }
html.dark .theme-toggle-light { display: none; }
html.dark .theme-toggle-dark { display: inline; }

html.dark .navbar {
    background-color: #111827;
    box-shadow: 0px 5px 10px rgba(0,0,0,0.35);
}

html.dark .nav-links a { color: #e5e7eb; }
html.dark .nav-links a:hover { color: #93c5fd; }

#google_translate_element { display: inline-flex; align-items: center; position: relative; }
#google_translate_element select {
    appearance: none;
    padding: 10px 40px 10px 14px;
    border: 1px solid blue;
    border-radius: 8px;
    background: #fff;
    color: blue;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}
#google_translate_element::after {
    content: "▾";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: blue;
    pointer-events: none;
}

@media (max-width: 768px) {
    .navbar { flex-wrap: nowrap; padding: 10px 18px; }
    .logo img { width: 70px; height: 70px; }
    .hamburger { display: flex !important; }

    .nav-links {
        position: fixed;
        inset: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 110px 28px 40px;
        gap: 0;
        transform: translateX(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s ease, opacity 0.28s ease;
        z-index: 1999;
        overflow-y: auto;
    }

    .nav-toggle:checked ~ .nav-links {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #ebebeb;
    }

    .nav-links a {
        display: block;
        padding: 20px 0;
        font-size: 15px;
        color: #555555;
    }

    html.dark .nav-links { background: #111827; }
    html.dark .nav-links li { border-bottom: 1px solid #334155; }
    html.dark .nav-links a { color: #e5e7eb; }
}

/* Button */
.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.submit-btn:hover {
    background-color: #2980b9;
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

/* Success Message */
#successMessage {
    text-align: center;
    padding: 20px;
    background-color: #e8f8f5;
    border: 1px solid #1abc9c;
    border-radius: 8px;
    color: #16a085;
}

#successMessage h3 {
    margin-bottom: 10px;
}

.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 600px) {
    .input-row {
        flex-direction: column;
        gap: 0;
    }
    .form-container {
        padding: 30px 20px;
    }
}

.site-footer {
    background: linear-gradient(135deg, #020B40 0%, #040d54 100%);
    color: #ffffff;
    padding: 70px 0 0 0;
    position: relative;
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #020B40);
    opacity: 0.3;
}

.footer-wrap {
    width: 92%;
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 70px;
    padding-bottom: 55px;
    align-items: start;
}

.footer-section.contact {
    display: flex;
    flex-direction: column;
}

.section-heading {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin: 0 0 28px 0;
    letter-spacing: 0.3px;
}

.branch-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.branch-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 22px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.branch-box:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-4px);
    border-color: rgba(43, 78, 255, 0.5);
}

.branch-box h4 {
    font-size: 14px;
    font-weight: 700;
    color: #4dabff;
    margin: 0 0 14px 0;
}

.branch-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.branch-item:last-child { margin-bottom: 0; }

.branch-icon {
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

@media (max-width: 660px) {
	.branch-container {
		grid-template-columns: 1fr;
	}
}

.branch-item p {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.55;
    margin: 0;
}

.footer-section.branding {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.footer-logo img {
    height: 56px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.footer-desc {
    font-size: 13.5px;
    line-height: 1.8;
    color: #c4cfe8;
    text-align: justify;
    margin: 0 0 24px 0;
}

.footer-social-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.follow-us-text {
    font-size: 11.5px;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin: 0;
}

.footer-social-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-icon {
    width: 44px; height: 44px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.social-icon:hover { transform: translateY(-4px); }
.social-icon.youtube:hover  { background: #FF0000; border-color: #FF0000; }
.social-icon.tiktok:hover   { background: #111; border-color: #fe2c55; box-shadow: -2px 0 0 #fe2c55, 2px 0 0 #25f4ee; }
.social-icon.linkedin:hover { background: #0A66C2; border-color: #0A66C2; }
.social-icon.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border-color: transparent;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.35);
    padding: 20px 0;
    text-align: center;
}

.footer-divider {
    width: 92%;
    max-width: 1250px;
    margin: 0 auto 14px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
}
