/*
Theme Name: Song Mai
Theme URI: https://kcnsongmai.com
Author: Song Mai
Author URI: https://kcnsongmai.com
Description: Theme Song Mai được tối ưu hoá đặc biệt cho Elementor Page Builder. Theme nhẹ, nhanh và linh hoạt, phù hợp cho mọi loại website.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: songmai
Tags: elementor, lightweight, flexible, responsive, rtl-language-support, accessibility-ready

Song Mai Theme, Copyright 2025
Song Mai is distributed under the terms of the GNU GPL.
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Container */
.site-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.site-header.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.site-header .site-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.site-branding {
    flex: 0 0 auto;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.site-title a {
    color: #333;
    text-decoration: none;
}

/* Navigation */
.site-navigation {
    flex: 1 1 auto;
}

.site-navigation ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.site-navigation a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-navigation a:hover {
    color: #007bff;
}

/* Main Content */
.site-main {
    padding: 40px 0;
    min-height: 60vh;
}

/* Footer */
.site-footer {
    background: #f8f9fa;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid #eee;
}

.site-footer .site-container {
    text-align: center;
}

/* Elementor Compatibility */
.elementor-page .site-main {
    padding: 0;
    width: 100%;
    max-width: 100%;
}

.elementor-page .site-container {
    max-width: 100%;
    padding: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header .site-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .site-navigation ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}



.single-recruitment h1{
    color: #264A5B;
}
.single-recruitment h2{
    color: #264A5B;
}
.single-recruitment h3{
    color: #264A5B;
}
.single-recruitment h4{
    color: #264A5B;
}
.single-recruitment h5{
    color: #264A5B;
}
.single-recruitment h6{
    color: #264A5B;
}

.header-main.fixed {
    background-color: #264A5B;
}





.fast-form {
    background-color: transparent;
    bottom: 1rem;
    left: auto;
    padding: 16px 0;
    pointer-events: none
}

.fast-form br{
    display: none;
}

.fast-form,.fast-form_content {
    max-width: 350px;
    position: fixed;
    right: 1rem;
    z-index: 99999
}

.fast-form_content {
    background: #ffffff;
    border-radius: 1.5rem 1.5rem 0 0;
    bottom: 4rem;
    box-shadow: 0 10px 40px rgba(0,0,0,.15);
    opacity: 0;
    padding: 1rem 1.25rem;
    pointer-events: auto;
    transform: translateY(20px);
    transition: all 0.3s ease;
    visibility: hidden;
    width: 90%
}

.fast-form_content__header {
    margin-bottom: 1rem;
    text-align: center
}

.fast-form_content__icon {
    height: 50px;
    margin: 0 auto .75rem;
    width: 50px
}

.fast-form_content__icon svg {
    height: 100%;
    width: 100%
}

.fast-form_content__title {
    color: #264a5b;
    font-family: "League Spartan", sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 .5rem
}

.fast-form_content__description {
    color: #666;
    font-size: .8125rem;
    line-height: 1.4;
    margin: 0
}

.fast-form_content__form .wpcf7 {
    margin: 0
}

.fast-form_content__form .wpcf7-spinner {
    display: none
}

.fast-form_content__form .wpcf7-form,.fast-form_content__form .wpcf7-form p {
    margin-bottom: 0
}

.fast-form_content__form .wpcf7-form label {
    color: #333;
    display: block;
    font-size: .875rem;
    font-weight: 500;
    margin-bottom: .375rem
}

.fast-form_content__form .wpcf7-form input[type=email],.fast-form_content__form .wpcf7-form input[type=tel],.fast-form_content__form .wpcf7-form input[type=text],.fast-form_content__form .wpcf7-form select,.fast-form_content__form .wpcf7-form textarea {
    background: #f5f5f5;
    border: 1px solid transparent;
    border-radius: .5rem;
    box-shadow: none;
    font-family: "League Spartan", sans-serif;
    font-size: .9375rem;
    font-weight: 400;
    height: 38px;
    line-height: 1;
    padding: .5rem .875rem;
    transition: all 0.2s ease;
    width: 100%
}

.fast-form_content__form .wpcf7-form input[type=email]:focus,.fast-form_content__form .wpcf7-form input[type=tel]:focus,.fast-form_content__form .wpcf7-form input[type=text]:focus,.fast-form_content__form .wpcf7-form select:focus,.fast-form_content__form .wpcf7-form textarea:focus {
    background: #ffffff;
    border-color: #c39a73;
    outline: none
}

.fast-form_content__form .wpcf7-form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%278%27 fill=%27none%27%3E%3Cpath stroke=%27%23666%27 stroke-linecap=%27round%27 stroke-width=%272%27 d=%27m1 1 5 5 5-5%27/%3E%3C/svg%3E");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    cursor: pointer;
    padding-right: 2.5rem
}

.fast-form_content__form .wpcf7-form textarea {
    height: auto;
    min-height: 70px;
    padding: .5rem .875rem;
    resize: vertical
}

.fast-form_content__form .wpcf7-form input[type=submit] {
    background: #264a5b;
    border: none;
    border-radius: 50rem;
    color: #ffffff;
    cursor: pointer;
    font-family: "League Spartan", sans-serif;
    font-size: .9375rem;
    font-weight: 600;
    height: 38px;
    line-height: 1;
    margin: .5rem 0 0;
    padding: .625rem 1rem;
    transition: all 0.3s ease;
    width: 100%
}

.fast-form_content__form .wpcf7-form input[type=submit]:hover {
    background: #c39a73
}

.fast-form_content__form .wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: .75rem;
    margin-top: .25rem
}

.fast-form_content__form .wpcf7-response-output {
    border-radius: .5rem;
    font-size: .875rem;
    margin: 1rem 0 0;
    padding: .75rem
}

.fast-form_button {
    align-items: center;
    background-color: #c39a73;
    border: none;
    border-radius: 50rem;
    bottom: 1rem;
    cursor: pointer;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    gap: 0;
    height: 48px;
    justify-content: center;
    margin: 0;
    max-width: 350px;
    overflow: hidden;
    padding: 12px;
    pointer-events: auto;
    position: fixed;
    right: 1rem;
    transition: all 0.4s ease;
    width: 48px;
    z-index: 100000
}

.fast-form_button__text {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-left: 0;
    margin-right: 0;
    opacity: 0;
    overflow: hidden;
    transition: width 0.4s ease, opacity 0.4s ease 0.1s;
    white-space: nowrap;
    width: 0
}

.fast-form_button__icon {
    align-items: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-shrink: 0;
    height: 24px;
    justify-content: center;
    transition: transform 0.3s ease;
    width: 24px
}

.fast-form_button__icon svg {
    fill: #ffffff;
    height: 100%;
    width: 100%
}

.fast-form_button:hover {
    background-color: #264a5b;
    gap: 12px;
    padding: 12px 20px 12px 16px;
    width: auto
}

.fast-form_button:hover .fast-form_button__text {
    margin-left: 8px;
    opacity: 1;
    width: auto
}

.fast-form_button:hover .fast-form_button__icon {
    transform: rotate(15deg) scale(1.05)
}

.fast-form.active .fast-form_content {
    box-shadow: none;
    opacity: 1;
    transform: translateY(0);
    visibility: visible
}

.fast-form.active .fast-form_button {
    background-color: #264a5b;
    border-radius: 0 0 1.5rem 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,.15);
    gap: 12px;
    justify-content: space-between;
    max-width: 350px;
    padding: 14px 1.5rem;
    width: 90%
}

.fast-form.active .fast-form_button .fast-form_button__text {
    margin-left: 0;
    opacity: 1;
    width: auto
}

.fast-form.active .fast-form_button .fast-form_button__icon {
    order: 2
}

@media(max-width: 768px) {
    .fast-form_content {
        bottom:4rem;
        left: auto;
        max-width: 350px;
        padding: .875rem 1rem;
        right: 1rem;
        width: calc(100% - 2rem)
    }

    .fast-form_content__icon {
        height: 45px;
        margin-bottom: .5rem;
        width: 45px
    }

    .fast-form_content__title {
        font-size: 1rem;
        margin-bottom: .375rem
    }

    .fast-form_content__description {
        display: none
    }

    .fast-form_content__header {
        margin-bottom: .75rem
    }

    .fast-form.active .fast-form_button {
        max-width: 350px;
        width: calc(100% - 2rem)
    }
}
