/* --- Reset & Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    color: #333;
    background-color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* --- Header & Navigation --- */
.top-header {
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .05);
}

.login-btn,
.menu-btn {
    background-color: #6b4196;
    color: #fff;
    border: none;
    padding: 15px 25px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-right i {
    color: #6b4196;
    font-size: 20px;
    cursor: pointer;
}

.sub-nav {
    background-color: #8c42bb;
    padding: 15px 40px;
}

.sub-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    justify-content: flex-start;
    overflow-x: auto;
}

.sub-nav a {
    color: #fff;
    font-size: 15px;
    font-weight: 100;
    white-space: nowrap;
}

.sub-nav a.active {
    border-bottom: 2px solid #fff;
    padding-bottom: 5px;
}

/* --- Responsive Styles --- */
@media (max-width:768px) {
    .top-header {
        padding: 2px 21px;
    }

    .header-right {
        gap: 15px;
    }

    .login-btn,
    .menu-btn {
        padding: 15px 25px;
        font-size: 14px;
    }

    .logo-img {
        height: 50px;
        margin-right: 20px;
        margin-top: 9px;
    }

    .sub-nav {
        padding: 12px 15px;
    }

    .hero {
        min-height: auto;
        display: block;
        padding-top: 30%;
        background-size: 100% auto;
        background-position: top center;
    }

    .hero-content {
        padding: 30px 20px;
    }

    .req-item {
        flex-direction: column;
        gap: 15px;
    }

    .benefits-table-section h2,
    .kelebihan-section h2 {
        font-size: 20px;
        text-align: center;
    }

    .kelebihan-note {
        text-align: center;
    }
}

/* --- Formulir Styles --- */
.form-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
}

.card-form {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.form-title {
    font-weight: 600;
    color: #6b4196;
    margin-bottom: 20px;
    font-size: 18px;
    text-align: center;
    border-bottom: 2px solid #f4f4f4;
    padding-bottom: 10px;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    color: #8c42bb;
    font-size: 16px;
}

.card-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

.card-input:focus {
    border-color: #8c42bb;
    box-shadow: 0 0 0 4px rgba(140, 66, 187, 0.1);
}

.row {
    display: flex;
    gap: 15px;
}

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

.btn-submit-card {
    width: 100%;
    background-color: #6b4196;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.btn-submit-card:hover {
    background-color: #56337a;
}

.card-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    opacity: 0.6;
}

/* --- Error Messages --- */
.input-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1) !important;
}

.error-text {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
    font-weight: 500;
}
