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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
    margin-bottom: 40px;
}

h1 {
    color: #fbac07;
    margin-bottom: 10px;
    font-size: 24px;
}

.subtitle {
    margin-bottom: 30px;
    font-size: 14px;
}

/* ===== SEARCH SECTION ===== */
.search-section {
    margin-bottom: 30px;
}

.search-section h2 {
    color: #fbac07;
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 700;
}

.search-section p {
    color: rgba(0, 0, 0);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.search-simple {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    align-items: center;
}

.search-input-main {
    padding: 14px 16px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-input-main::placeholder {
    color: #95a5a6;
}

.search-input-main:focus {
    outline: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.btn-search-main {
    padding: 12px 30px;
    background: #fbac07;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-search-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-results {
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
}

/* ===== PATIENT CARD ===== */
.patient-card {
    background: white;
    padding: 15px;
    border: 2px solid #ecf0f1;
    border-radius: 5px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.patient-card:hover {
    border-color: #e8e8e8;
}

.patient-card h4 {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 5px;
}

.patient-card p {
    color: #7f8c8d;
    font-size: 13px;
    margin: 3px 0;
}

.patient-card .badge {
    display: inline-block;
    padding: 3px 10px;
    background: #27ae60;
    color: white;
    border-radius: 12px;
    font-size: 11px;
    margin-top: 5px;
    cursor: pointer;
}

.patient-card .badge:hover {
    background: #229954;
}

/* ===== DIVIDER ===== */
.divider {
    background: white;
    padding: 14px 20px;
    margin: 20px 0;
    border-radius: 8px;
    text-align: center;
}

.divider span {
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 600;
}

/* ===== FORM SECTION ===== */
.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 14px;
}

.required {
    color: #e74c3c;
}

input[type="text"],
input[type="date"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border 0.3s;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin-right: 5px;
    cursor: pointer;
}

/* ===== DYNAMIC FIELD ===== */
.dynamic-field {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.dynamic-field input {
    flex: 1;
    min-width: 200px;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-add {
    background: #fbac07;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-add:hover {
    background: #e69d06;
}

.btn-remove {
    background: #e74c3c;
    color: white;
    padding: 10px 15px;
}

.btn-remove:hover {
    background: #c0392b;
}

.btn-primary {
    background: #fbac07;
    color: white;
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
}

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

/* ===== PARTICIPANT FORM ===== */
.participant-form {
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    background: #fafafa;
}

.participant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    flex-wrap: wrap;
    gap: 10px;
}

.participant-header h3 {
    color: #2c3e50;
    font-size: 20px;
    margin: 0;
}

.btn-add-participant {
    width: 100%;
    padding: 18px 20px;
    background: #f1f1f1;
    color: #9e9e9e;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin: 30px 0 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 100;
    display: block;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-add-participant:hover {
    background: #e0e0e0;
    transform: translateY(-3px);
}

.btn-add-participant:active {
    transform: translateY(0);
}

.btn-remove-participant {
    padding: 8px 20px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-remove-participant:hover {
    background: #c0392b;
}

/* ===== ROW LAYOUT ===== */
.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.info-box {
    background: #e8f4f8;
    padding: 12px;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 13px;
    color: #2c3e50;
    grid-column: 1 / -1;
}

/* ===== LOADING & NO RESULTS ===== */
.loading {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
}

.no-results {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-size: 14px;
}

/* ===== VAKSIN GRID ===== */
.vaksin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: normal;
    font-size: 14px;
}

.checkbox-item:hover {
    background: #f5f5f5;
    border-color: #3498db;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    width: auto;
}

.checkbox-item input[type="checkbox"]:checked {
    accent-color: #3498db;
}

/* ========================================
   RESPONSIVE MEDIA QUERIES
   ======================================== */

/* TABLET - 1024px */
@media (max-width: 1024px) {   
    .vaksin-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        gap: 30px;
    }
}

/* TABLET - 768px */
@media (max-width: 768px) {  
    /* Container */
    .container {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    .search-section h2 {
        font-size: 18px;
    }
    
    /* Search */
    .search-simple {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .btn-search-main {
        width: 100%;
        padding: 14px;
    }
    
    /* Row */
    .row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* Vaksin Grid */
    .vaksin-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    /* Participant */
    .participant-form {
        padding: 15px;
    }
    
    .participant-header h3 {
        font-size: 18px;
    }
    
    .btn-add-participant {
        padding: 16px;
        font-size: 15px;
    }
}

/* MOBILE - 480px */
@media (max-width: 480px) {   
    /* Container */
    .container {
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 18px;
    }
    
    .subtitle {
        font-size: 13px;
    }
    
    .search-section h2 {
        font-size: 16px;
    }
    
    .search-section p {
        font-size: 13px;
    }
    
    /* Form */
    input[type="text"],
    input[type="date"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
        padding: 10px;
        font-size: 13px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .btn-primary {
        padding: 14px;
        font-size: 15px;
    }
    
    /* Radio Group */
    .radio-group {
        gap: 15px;
    }
    
    /* Dynamic Field */
    .dynamic-field {
        flex-direction: column;
        gap: 8px;
    }
    
    .dynamic-field input {
        min-width: 100%;
    }
    
    .dynamic-field .btn-remove {
        width: 100%;
    }
    
    /* Participant */
    .participant-form {
        padding: 12px;
    }
    
    .participant-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .participant-header h3 {
        font-size: 16px;
    }
    
    .btn-remove-participant {
        width: 100%;
        margin-top: 10px;
    }
    
    /* Patient Card */
    .patient-card {
        padding: 12px;
    }
    
    .patient-card h4 {
        font-size: 15px;
    }
    
    .patient-card p {
        font-size: 12px;
    }
}

/* EXTRA SMALL - 360px */
@media (max-width: 360px) {  
    .container {
        padding: 15px 12px;
    }
    
    .search-input-main,
    .btn-search-main {
        font-size: 14px;
    }
}