@import url('{{ asset("css/css2.css") }}');

:root{
    --main-color:#ffffff;
    --white:#ffffff;
    --bg: hsl(0, 0%, 100%); /*green to yellow*/
    /*yello-green linear-gradient(to right, rgb(255, 255, 255), rgb(245, 214, 156), rgb(253, 165, 2), rgb(16, 212, 16), rgb(84, 84, 243)) */
    --border: .1rem solid #000;
}

*{
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
    transition: .2s linear;
}

html{
    font-size: 65.5%;
    overflow-x: hidden;
    scroll-padding-top: 9rem;
    scroll-behavior: smooth;
}

html::-webkit-scrollbar{
    width: 1.0rem;
}

html::-webkit-scrollbar-track{
    background: #fff;
}

html::-webkit-scrollbar-thumb{
    background: #027238;
    border-radius: 5rem;
}

body{
    background-color: #ecdcdc;
    overflow-x: hidden;
}

section{
    padding: 2rem 7%;
}

.heading{
    text-align: center;
    color: #000000;
    text-transform: uppercase;
    padding-bottom: 3.5rem;
    font-size: 4rem;
}

.heading span{
    color: #0edd87;
    text-transform: uppercase;
}

.btn{
    margin-top: 1rem;
    display: inline-block;
    padding: .9rem 3rem;
    font-size: 1.7rem;
    color: #fff;
    background: #000000;
    cursor: pointer;
}

.btn:hover{
    letter-spacing: .2rem;
}

.header{
    background: #014421;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.6rem 6%;
    border-bottom: var(--bg);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-text-img{
    display: inline-flex;
    margin-right: 10px;
}

.logo-container img {
    width: 60px; 
    height: 40px;
    margin-top: 7px;

}

/* .logo-text {
    color: black;
    text-align: center; 
    font-family: Georgia;
}

.logo-text h4 {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
}

.logo-text h2{
    font-size: 15px;
} 

.inline-text {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px; 
}

.inline-text h2, .inline-text h3 {
    margin: 0;
    font-weight: bold;
}

.inline-text h2 {
    font-size: 18px;
}

.inline-text h3 {
    font-size: 16px;
} */


.logo-container .gov{
    font-size: 1.9rem;
    font-weight: bolder;
    color: #fff;
    margin-right: 30px;
}

.logo-container .arta {
  width: 90px;
  height: auto;
  padding-left: -10px;
}

.logo-container .bagong_pilipinas {
  height: 35px;
  width: auto;
  margin-right: 30px;
}

.navbar{
    margin-left: 280px;
}

.header .navbar a{
    margin: 0.3rem;
    font-size: 1.7rem;
    color: #fff;
}

.header .navbar a:hover{
    color: #0edd87;
    border-bottom: .1rem solid #0edd87;
    padding-bottom: .5rem;
}

.header .icon div{
    color: #0edd87;
    cursor: pointer;
    font-size: 2.5rem;
    margin: 2rem;
}

.header .icon div:hover{
    color: #0edd87;
}

#menu-btn{
    display: none;
}

.navbar .dropdown {
    position: relative;
    display: inline-block;
}

.navbar .dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgb(1, 60, 43, 0.7);
    z-index: 1;
    border-radius: 5px;
}

.navbar .dropdown-content a {
    color: rgb(1, 60, 43);
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    transition: background 0.3s, color 0.3s;
}

.navbar .dropdown-content a:hover {
    background-color: rgb(1, 60, 43);
    color: #fff;
}

.navbar .dropdown:hover .dropdown-content {
    display: block;
}

.navbar .dropdown:hover > a {
    color: #0edd87;
}


.blur-bg-overlay{
    position: fixed;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(5px);
    transition: 0.1 ease;
}

.show-popup .blur-bg-overlay{
    opacity: 1;
    pointer-events: auto;
}

.form-popup{
    position: fixed;
    top: 50%;
    left: 50%;
    max-width: 720px;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    background: #ffffff80;
    transform: translate(-50%, -100%);
}

.show-popup .form-popup{
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, opacity 0.1s;
}

.form-popup .close-btn{
    position: absolute;
    top: 12px;
    right: 12px;
    color: #000000;
    cursor: pointer;
}

.form-popup .form-box{
    display: flex;
}

.form-box .form-details{
    max-width: 330px;
    width: 100%;
    color: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: url(../assets/login-background.png);
    background-size: cover;
    background-position: center;
}

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

.form-box .form-content{
    width: 100%;
    padding: 35px;
}

form .input-field{
    height: 50px;
    width: 100%;
    margin-top: 20px;
    position: relative;
}

form .input-field input{
    width: 100%;
    height: 100%;
    outline: none;
    padding: 0 15px;
    font-size: 0.95rem;
    border-radius: 3px;
    border: 1px solid #717171;
}

.input-field input:focus{
    border-color: #000000;
}

.input-field input:is(:focus, :valid){
        padding: 16px 15px 0;
}

form .input-field label{
    position: absolute;
    top: 50%;
    left: 15px;
    color: #717171;
    pointer-events: none;
    transform: translateY(-50%);
}

.input-field input:is(:focus, :valid) ~ label{
    color: #29f800;
    font-size: 0.75rem;
    transform: translateY(-120%);
}

.form-box a{
    color: #000000;
    text-decoration: none;
}

.form-box a::hover{
    text-decoration: underline;
}

form button{
    width: 100%;
    outline: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 0;
    border-radius: 3px;
    margin: 25px 0;
    color: #fff;
    cursor: pointer;
    background: #014421 !important;
}

form button:hover{
    background: #0edd87 !important;
}

@media (max-width:760px){
    .form-popup{
        width: 95%;
    }

    .form-box .form-details{
        display: none;
    }
    
    .form-box .form-content{
        padding: 30px 20px;
    }
}

.csm-container {
    padding: 50px;
    position: relative;
    background: #f9f9f9;
    border-radius: 12px;
    max-width: 1200px;
    margin: auto;
    margin-top: 120px;
    overflow: visible;
}

.csm-form h2 {
    text-align: center;
}

.csm-form h4 {
    text-align: center;
    font-weight: bolder;
}

.csm-form table {
    width: 100%;
    border-collapse: collapse;
}

.csm-form th, .csm-form td {
    text-align: center;
}

.csm-header {
    display: flex;
    text-align: center;
    gap: 0;
    margin-bottom: 10px;
}

.csm-logo {
    height: 80px;
    display: block;
    margin-left: 310px;
}

.csm-header-text p {
    margin: 0;
    font-size: 14px;
}

.csm-header-text .bold {
    font-size: 18px;
    font-weight: bold;
}

.csm-header-text .italic {
    font-style: italic;
}

.date-input {
    border: none;
    border-bottom: 1px solid #000;
    padding: 2px 5px;
    font-size: 14px;
    width: 150px;
    background: transparent;
}

.input-line {
    border: none;
    border-bottom: 1px solid #000; /* Black line */
    outline: none;
    background: transparent;
    width: 150px; /* Adjust the width to your design needs */
    padding: 5px 0;
}

.age-input-line{
    border: none;
    border-bottom: 1px solid #000; /* Black line */
    outline: none;
    background: transparent;
    width: 50px; /* Adjust the width to your design needs */
    padding: 5px 0;
}

.input-line:focus {
    border-bottom: 1px solid #007BFF; /* Blue line on focus */
}

.textarea-line {
    border: none;
    border-bottom: 1px solid #000; /* Black line */
    outline: none;
    background: transparent;
    width: 100%; /* Full width of the container */
    padding: 5px 0;
    resize: none; /* Disable resizing of the textarea */
}

.textarea-line:focus {
    border-bottom: 1px solid #007BFF; /* Blue line on focus */
}


.email-input-line {
    border: none;
    border-bottom: 1px solid #000; /* Black line */
    outline: none;
    background: transparent;
    width: 250px;
    padding: 5px 0;
}

.email-input-line:focus {
    border-bottom: 1px solid #007BFF; /* Blue line on focus */
}


.form-title {
    text-align: center;
    font-size: 20px;
}

.form-subtitle {
    text-align: center;
    font-size: 12px;
}

.form-description, .note, .form-instruction, label {
    font-size: 16px;
}

.radio-group, .info-row, .question-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-size: 16px;
}

.question-group {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
}

.cc1{
    padding-bottom: 75px;
}

.cc2{
    padding-bottom: 90px;
}

.cc3{
    padding-bottom: 75px;
}

.survey-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    padding-bottom: 20px;
}

.emoji {
    font-size: 3rem; 
    display: block;
    margin-bottom: 2px;
    filter: grayscale(100%); /* Align the emoji to the top */
}

.rating-label {
    font-size: 12px;
}


.survey-table th, .survey-table td {
    border: 1px solid #000;
    padding: 10px;
    font-size: 14px;
    vertical-align: top; /* Align the entire content of the <th> to the top */
    text-align: center; 
}

.survey-table thead {
    background-color: #f1f1f1;
}

.left-align {
    text-align: left;
}

.scale-radio {
    transform: scale(1.5);
    margin: 5px;
}

.full-width-textarea {
    width: 100%;
}

.email-input {
    width: 100%;
    margin-bottom: 20px;
}

.submit-btn {
    background-color: blue;
    color: white;
    width: 100%;
    padding: 20px;
    border: none;
    cursor: pointer;
    font-size: medium;
}

.footer {
    background-color: #ffffff;
    color: #000;
    text-align: center;
    padding: 10px 0;
    font-size: 1rem;
    width: 100%;
    position: relative;
    bottom: 0;
    left: 0;
    margin-top: 20px;
}

.footer .share {
    padding: 0.5rem 0; /* Reduce padding */
}

.footer .share a {
    height: 3rem;
    width: 3rem;
    line-height: 3rem;
    font-size: 1.5rem;
    color: #000;
    border: var(--border);
    margin: 0.2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.footer .share a:hover {
    background: #000;
    color: #fff;
}

.footer .credit {
    font-size: 1.2rem; /* Reduce font size */
    color: #0000009c;
    font-weight: bold;
    padding: 1rem; /* Reduce padding */
}

.footer .credit span {
    font-weight: lighter;
    color: #0000009c;
}

.footer .logo img {
    height: 5rem; /* Reduce logo size */
    display: block;
    margin: 0 auto;
}

/* Modal container */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Black w/ opacity */
}

/* Modal content */
.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 600px;
    border-radius: 8px;
    overflow: hidden;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: large;
    font-weight: 500;
}

.modal-body {
    padding: 15px;
    font-size: medium;
    font-weight: 400;
    color: #333;
}

.modal-footer {
    padding: 10px 15px;
    text-align: right;
    background: #f0f0f0;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.btn-secondary {
    padding: 5px 10px;
    font-size: 14px;
    background-color: #6c757d;
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #5a6268;
}



/* 🔹 MOBILE RESPONSIVENESS */
@media (max-width: 991px) {

    .header {
        padding: 1.5rem 3%;
        gap: 10px;
    }

    .logo-container {
        transform: none;
        transform-origin: left center;
        margin-right: 0;
        max-width: calc(100% - 56px);
        overflow: hidden;
        gap: 8px;
    }

    .logo-text-img{
        display: flex;
    }

    .logo-container img {
        width: 46px;
        height: auto;
        margin-left: 0;
    }

    .logo-text {
        font-size: 0.85em; /* scales down the entire text block */
        line-height: 1.1;
        margin-left: 20px;
    }

    .logo-text h4 {
        font-size: 12px;
    }

    .inline-text h2 {
        font-size: 14px;
    }

    .inline-text h3 {
        font-size: 12px;
    }

    .logo-text h2 {
        font-size: 14px;
    }

    .logo-container .gov {
        font-size: 1.5rem;
        margin: 0 4px;
        white-space: nowrap;
    }

    .logo-container .arta {
        width: 72px;
    }

    .logo-container .bagong_pilipinas {
        height: 28px;
        margin-right: 4px;
    }


    /* Hide navbar by default on mobile */
    .navbar {
        display: none;
        position: absolute;
        top: 100%;
        right: 3%;
        background: rgb(1, 60, 43);
        flex-direction: column;
        width: 220px;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        padding: 10px 0;
        z-index: 999;
        animation: fadeInDown 0.3s ease;
    }

    /* When menu active */
    .navbar.active {
        display: flex;
    }

    .navbar a {
        display: block;
        margin: 0;
        padding: 12px 20px;
        font-size: 1.6rem;
    }

    .navbar a:hover {
        background-color: rgb(1, 60, 43);
        color: #0edd87;
        border: none;
        padding-bottom: 12px;
        transition: background 0.3s ease;
    }

    /* Dropdown styling inside mobile */
    .navbar .dropdown {
        width: 100%;
    }

    .navbar .dropdown-content {
        position: static;
        background-color: #f8f8f8;
        box-shadow: none;
        border-radius: 0;
        min-width: unset;
        padding-left: 20px;
    }

    .navbar .dropdown-content a {
        font-size: 1.5rem;
        padding: 10px 0;
        color: rgb(1, 60, 43);
    }

    /* Show burger icon */
    #menu-btn {
        display: block;
        color: #0edd87;
        font-size: 2.8rem;
        cursor: pointer;
        margin: 0;
        line-height: 1;
        padding: 4px 8px;
    }

    .header .icon{
        margin-left: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 44px;
        z-index: 1002;
    }

    .csm-container{
        margin-top: 96px;
        padding: 16px;
        border-radius: 10px;
    }

    .csm-form {
        width: 100%;
        margin: 0 auto; /* center form */
        max-width: 100%;
        align-items: stretch;
        overflow-wrap: anywhere;
    }

    .csm-header{
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin-left: 0;
        text-align: center;
    }

    .csm-logo{
        margin-left: 0;
        height: 72px;
    }

    .question-group {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .question-group p.cc1,
    .question-group p.cc2,
    .question-group p.cc3 {
        margin: 16px 0 0;
        padding-bottom: 0;
        font-weight: 700;
    }


    .question-block {
        margin-left: 0;
        width: 100%;
    }

    input[type="radio"] {
        transform: scale(1.1);
        margin-right: 6px;
    }

       /* Make the table container scrollable if needed */
    .survey-table {
        width: 100%;
        overflow-x: auto;
        display: block;
        -webkit-overflow-scrolling: touch;
    }

    /* Make sure the table cells shrink properly */
    .survey-table table {
        width: 100%;
        border-collapse: collapse;
        table-layout: auto; /* allows cell text to wrap */
        font-size: 12px; /* smaller font for phones */
    }

    /* Reduce padding and image size */
    .survey-table th,
    .survey-table td {
        padding: 6px;
        text-align: center;
        word-wrap: break-word;
    }

    /* Make emoji headers smaller */
    .survey-table th img {
        width: 25px;
        height: 25px;
    }

    /* Let long question text wrap */
    .survey-table td:first-child {
        white-space: normal;
        text-align: left;
        min-width: 140px;
    }

    .form-description,
    .note,
    .form-instruction,
    label{
        font-size: 15px;
    }

    .email-input-line{
        width: 100%;
        max-width: 100%;
    }

    .input-line{
        width: 100%;
        max-width: 220px;
    }
}

/* 🔹 Optional smooth dropdown animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width:450px){
     
    html{
        font-size: 50%;
    }

    .header{
        padding: 1.2rem 3%;
    }

    .logo-container{
        max-width: calc(100% - 50px);
    }

    .logo-container .gov{
        font-size: 1.35rem;
    }

    .csm-container{
        padding: 12px;
    }

    .csm-header{
        flex-direction: column;
        gap: 8px;
    }

    .csm-logo{
        height: 64px;
    }

    .csm-header-text p{
        font-size: 13px;
        line-height: 1.25;
    }

}

.google-btn {
    font-size: 15px;  /* change to any size you want */
    padding: 8px 12px; /* optional: adjust padding to match the bigger font */
    display: inline-block; /* ensures padding applies nicely */
    text-decoration: none; /* remove underline if any */
}


