* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Arial, sans-serif !important;
    background: #f4f7fb;
    color: #0f172a;
}

/* NAVBAR */
.navbar {
    width: 100%;
    background: #0f2f55;
    border-top: 4px solid #d9a62e;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 22px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.brand-text {
    line-height: 1.25;
    color: #ffffff;
}

.brand-text strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
}

.brand-text small {
    font-size: 12px;
    color: #dbeafe;
    font-weight: 500;
}

.menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    position: relative;
    padding-bottom: 8px;
}

.menu a.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 58%;
    height: 3px;
    background: #facc15;
    border-radius: 999px;
    transform: translateX(-50%);
}

.menu a:hover {
    color: #facc15;
}

/* PAGE */
.bukutamu-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 42px 20px 60px;
}

/* HERO */
.bukutamu-hero {
    margin-bottom: 24px;
    background:
        linear-gradient(135deg, rgba(15, 47, 85, 0.96), rgba(29, 78, 216, 0.88)),
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.25), transparent 35%);
    border-radius: 24px;
    padding: 38px 36px;
    color: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 47, 85, 0.22);
}

.hero-badge {
    display: inline-block;
    font-size: 12px;
    background: rgba(250, 204, 21, 0.18);
    color: #fde68a;
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
    font-weight: 600;
}

.bukutamu-hero h1 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.bukutamu-hero p {
    font-size: 14px;
    color: #e0f2fe;
    line-height: 1.8;
    max-width: 760px;
}

/* FORM CARD */
.form-card {
    background: #ffffff;
    border-radius: 26px;
    padding: 32px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

.form-header {
    margin-bottom: 26px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 18px;
}

.form-header h2 {
    font-size: 26px;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 6px;
}

.form-header p {
    font-size: 14px;
    color: #64748b;
}

/* LAYOUT */
.bukutamu-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: stretch;
}

.form-left,
.camera-right {
    background: linear-gradient(180deg, #f8fafc, #ffffff);
    border: 1px solid #dbe3ef;
    border-radius: 22px;
    padding: 24px;
}

.form-left h3,
.camera-right h3 {
    font-size: 17px;
    color: #0f2f55;
    font-weight: 700;
    margin-bottom: 20px;
}

/* FORM */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-group.full {
    grid-column: span 2;
}

.form-group label {
    font-size: 13px;
    color: #334155;
    margin-bottom: 7px;
    display: block;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    font-family: 'Poppins', Arial, sans-serif;
    width: 100%;
    height: 48px;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    padding: 0 14px;
    font-size: 13px;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    transition: 0.2s ease;
}

.form-group textarea {
    height: 118px;
    padding-top: 14px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 13px;
    color: #94a3b8;
    opacity: 1; 
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #0f2f55;
    box-shadow: 0 0 0 4px rgba(15, 47, 85, 0.12);
}

/* CAMERA */
.camera-box {
    width: 100%;
    height: 300px;
    background: #0f172a;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid #e0ecff;
    position: relative;
}

.camera-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.btn-camera,
.btn-photo {
    border: none;
    height: 46px;
    border-radius: 14px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.2s ease;
}

.btn-camera {
    background: #dbeafe;
    color: #0f2f55;
}

.btn-camera:hover {
    background: #bfdbfe;
}

.btn-photo {
    background: #fef3c7;
    color: #92400e;
}

.btn-photo:hover {
    background: #fde68a;
}

.preview-box {
    margin-top: 18px;
}

.preview-box p {
    font-size: 13px;
    color: #475569;
    margin-bottom: 8px;
}

.preview-box img {
    width: 100%;
    max-height: 230px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

/* BUTTON SUBMIT */
.btn-submit {
    margin-top: 24px;
    width: 100%;
    height: 54px;
    background: linear-gradient(135deg, #0f2f55, #123d70);
    color: #ffffff;
    border: none;
    border-radius: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
    box-shadow: 0 10px 24px rgba(15, 47, 85, 0.22);
}

.btn-submit:hover {
    background: #0c2545;
    transform: translateY(-1px);
}

/* ALERT */
.alert-success {
    background: #dcfce7;
    color: #166534;
    padding: 13px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 13px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    border: 1px solid #fecaca;
}

.error-text {
    color: #dc2626;
    font-size: 12px;
    display: block;
    margin-top: 6px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .bukutamu-layout {
        grid-template-columns: 1fr;
    }

    .bukutamu-page {
        max-width: 760px;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .menu {
        flex-wrap: wrap;
        gap: 16px;
    }

    .form-card {
        padding: 24px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: span 1;
    }

    .bukutamu-hero {
        padding: 28px;
    }

    .bukutamu-hero h1 {
        font-size: 24px;
    }

    .camera-actions {
        grid-template-columns: 1fr;
    }
}
/* ===================================== */
/* SIGNATURE */
/* ===================================== */

.signature-wrapper {
    margin-top: 24px;
    background: #ffffff;
    border-radius: 24px;
    padding: 22px;
    border: 1px solid #dbe3ef;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.signature-wrapper h3 {
    font-size: 18px;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 8px;
}

.signature-wrapper::after {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 14px;
}

#signature-pad {
    width: 100%;
    height: 180px;
    background: #ffffff;
    border-radius: 18px;
    border: 2px dashed #cbd5e1 !important;
    cursor: crosshair;
    box-shadow:
        inset 0 2px 10px rgba(15, 23, 42, 0.04);
}

.signature-actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
}

.signature-actions button {
    border: none;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: .25s ease;
    box-shadow: 0 10px 20px rgba(239, 68, 68, .20);
}

.signature-actions button:hover {
    transform: translateY(-2px);
    opacity: .92;
}