* {
    box-sizing: border-box;
}

.grecaptcha-badge { 
    visibility: hidden !important; 
}


body {
    margin: 0px;
    background-color: #FBF7F0;
    font-family: Arial, Helvetica, sans-serif;
}

h1, h2, h3, h4 {
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    color: #2B1F1A;
    line-height: 1.2em;
}

/*Header*/
header {
    width: 100%;
    padding: 10px 20px;
    background-color: #fff;
    border-bottom: 1px solid rgba(43,31,26,0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}
header img {
    display: block;
    vertical-align: middle;
    max-width: 100%;
    height: auto;
}
header div#toplink a, #mainNav .mobile-toplink a {
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    color: #fff;
    padding: 10px 20px;
}
header div#toplink a:hover, #mainNav .mobile-toplink a:hover {
    background-color: #2B1F1A !important;
}

/*Navigation*/
#menuToggle, .mobile-drawer-header, #mainNav .mobile-toplink, #menuOverlay {
    display: none;
}
#mainNav {
    width: 100%;
    padding: 10px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 15px auto;
    box-sizing: border-box;
    justify-content: center;
}
#mainNav > a {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    background: rgba(194,81,45,0.12);
    color: #2B1F1A;
    padding: 7px 14px;
    border-radius: 20px;
    border: 1px solid rgba(43,31,26,0.12);
}
#mainNav > a:hover {
    background-color: #2B1F1A;
    color: #FBF7F0;
}

@media (max-width: 960px) {
    header div#toplink {
        display: none;
    }
    #menuToggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 40px;
        height: 40px;
        padding: 0;
        background: transparent;
        border: 1px solid rgba(43,31,26,0.12);
        border-radius: 6px;
        cursor: pointer;
    }
    #menuToggle span {
        display: block;
        width: 20px;
        height: 2px;
        background-color: #2B1F1A;
    }
    #menuOverlay {
        display: block;
        position: fixed;
        inset: 0;
        background-color: rgba(43,31,26,0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999;
    }
    #menuOverlay.is-open {
        opacity: 1;
        visibility: visible;
    }
    #mainNav {
        position: fixed;
        top: 0;
        left: 0;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        padding: 16px 20px 30px;
        background-color: #FBF7F0;
        border-right: 1px solid rgba(43,31,26,0.12);
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 8px;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }
    #mainNav.is-open {
        transform: translateX(0);
    }
    .mobile-drawer-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 12px;
        margin-bottom: 6px;
        border-bottom: 1px solid rgba(43,31,26,0.12);
    }
    .mobile-drawer-header img {
        display: block;
        max-width: 100%;
        height: auto;
    }
    #menuClose {
        background: transparent;
        border: none;
        color: #2B1F1A;
        font-size: 28px;
        line-height: 1;
        padding: 0 4px;
        cursor: pointer;
    }
    #mainNav .mobile-toplink {
        display: flex;
        gap: 7px;
        margin-bottom: 10px;
    }
    #mainNav .mobile-toplink a {
        flex: 1;
        padding: 10px 12px;
        font-size: 13px;
    }
    #mainNav > a {
        margin: 0;
        width: 100%;
        text-align: left;
        padding: 10px 14px;
        font-size: 13px;
        box-sizing: border-box;
    }
}

/*Title*/
#title {
    max-width: 1000px;
    width: 100%;
    margin: auto;
    padding: 30px 20px;            
}
#title h1 {
    text-align: center;
    font-size: 36px;
    margin: 15px 0px 5px;
}
#title p {
    font-size: 18px;
    text-align: center;
    color: #7A6B62;
}

/*Submission Form*/        
#freelancerForm, #editFreelancerForm {
    width: 90%;
    max-width: 800px;
    margin: auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 25px;
    border: 1px solid rgba(43,31,26,0.12);
    transition: border-color .2s;
}   
#freelancerForm:hover, #editFreelancerForm:hover {
    border: 1px solid #2B1F1A;
}    
#freelancerForm label, #editFreelancerForm label {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5em;
    color: #2B1F1A;
    margin-bottom: 5px;
    display: inline-block;
}   
#freelancerForm input[type="text"],  #freelancerForm input[type="email"],  #freelancerForm input[type="tel"],  #freelancerForm input[type="url"],  #freelancerForm textarea, #editFreelancerForm input[type="text"],  #editFreelancerForm input[type="email"],  #editFreelancerForm input[type="tel"],  #editFreelancerForm input[type="url"],  #editFreelancerForm textarea {
    padding: 12px;
    width: 100%;
    border-radius: 6px;
    border: none;
    outline: 1px solid #aaa;
    margin-bottom: 10px;
}
#freelancerForm select, #editFreelancerForm select {
    padding: 10px 36px 10px 12px;
    width: 40%;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #aaa;
    outline: none;
    color: #333;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    background-image: linear-gradient(45deg, transparent 50%, #555 50%), linear-gradient(135deg, #555 50%, transparent 50%);
    background-position: calc(100% - 17px) center, calc(100% - 12px) center;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}
#freelancerForm input[type="checkbox"], #editFreelancerForm input[type="checkbox"] {
    border-radius: 6px;
    border: none;
    margin-bottom: 10px;
} 
#freelancerForm .file-upload-group, #editFreelancerForm .file-upload-group {
    margin-bottom: 10px;
}
#freelancerForm input[type="file"], #editFreelancerForm input[type="file"] {
    display: block;
    width: 100%;
    padding: 8px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5em;
    background-color: #f9fafb;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
#freelancerForm input[type="file"]:hover, #editFreelancerForm input[type="file"]:hover {
    border-color: #2563eb;
    background-color: #eff6ff;
}
#freelancerForm input[type="file"]::file-selector-button, #editFreelancerForm input[type="file"]::file-selector-button {
    padding: 8px 14px;
    margin-right: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background-color: #2563eb;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}
#freelancerForm input[type="file"]::file-selector-button:hover, #editFreelancerForm input[type="file"]::file-selector-button:hover {
    background-color: #1d4ed8;
}
#freelancerForm input[type="file"]::file-selector-button:active, #editFreelancerForm input[type="file"]::file-selector-button:active {
    transform: scale(0.98);
}
#freelancerForm .is-hidden, #editFreelancerForm .is-hidden { 
    display: none;
}
#freelancerForm .php-error-list, #editFreelancerForm .php-error-list { 
    display: block;
    color: #ff3333;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.5em;
}
#freelancerForm #contactNotice, #editFreelancerForm #contactNotice { 
    color: #ff3333;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.5em;
}        
#freelancerForm .php-success-box, #editFreelancerForm .php-success-box { 
    display: block; 
    color: #33cc00;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.5em;
}
#freelancerForm .js-counter-invalid, #editFreelancerForm .js-counter-invalid {
    font-weight: bold;
    color: #ff3333;
    font-size: 12px;
    line-height: 1.5em;
}
#freelancerForm .js-counter-valid, #editFreelancerForm .js-counter-valid {
    font-weight: normal;
    color: #A1A1A8;
    font-size: 12px;
    line-height: 1.5em;
}
#freelancerForm button, #editFreelancerForm button {
    background-color: #C2512D;
    padding: 10px 20px;
    color: #fff;
    border: none;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
}
#freelancerForm button:hover, #editFreelancerForm button:hover {
    background-color: #2B1F1A;
}       
@media (max-width: 960px) {
    #freelancerForm select, #editFreelancerForm select { 
       width: 100%;
    }
    #freelancerForm button, #editFreelancerForm button {
        width: 100%;
    }           
}

/*Container*/      
.container {
    width: 90%;
    max-width: 1000px;
    margin: auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 25px;
    border: 1px solid rgba(43,31,26,0.12);
    transition: border-color .2s;
}
.container h2 {
    font-size: 28px;
    margin-top: 30px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(43,31,26,0.12);
}
.container h3 {
    font-size: 20px;
    color: 000;
}
.container h2:first-child {
    margin-top: 0;
}
.container p {
    margin: 0 0 14px;
    color: #2B1F1A;
    line-height: 1.5em;
    font-size: 16px;
}
.container ul {
    margin: 0 0 16px;
    padding-left: 20px;
}
.container li {
    margin-bottom: 8px;
    line-height: 1.5em;
    font-size: 16px;
}
.container a {
    color: #C2512D;
    text-decoration: underline;
}

/*Footer*/
footer {
    width: 100%;
    padding: 10px 20px;
    background-color: #7A6B62;
    margin-top: 35px;
}
footer div {
    width: 100%;
    max-width: 1200px;
    display: flex;
    gap: 15px;
    margin: auto;
}
footer div section {
    width: 33.33%;
}
footer div section h3 {
    color: #FBF7F0;
    font-size: 22px;
}
footer div section nav a {
    color: #fff;
    font-size: 15px;
    line-height: 1.7em;
    text-decoration: none;
    display: block;
}
footer div section img {
    max-width: 100%;
    height: auto;
}
footer p {
    text-align: center;
    font-size: 13px;
    color: #eee;
}
@media (max-width: 960px) {
    footer div {
        flex-direction: column;
        gap: 0;
    }
    footer div section {
        width: 100%;
        text-align: center;
    }         
}