@charset "UTF-8";

/*
Theme Name: Cosmetic Studio
Theme URI: https://cos.agilino.vn/
Author: Agilino
Author URI: https://cos.agilino.vn/
Description: A professional cosmetic studio WordPress theme.
Version: 1.4.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cosmetic
Tags: custom-logo, responsive-layout, custom-menu
*/

/* === Global Variables === */
:root {
  --color-white: #fff;
  --color-black: #000;
  --font-montserrat: 'Montserrat', sans-serif;
  --color-primary: #1D8258;
  --color-secondary: #1cac78;
  --color-accent: #a4de95;
  --color-highlight: #ffa000;
  --color-light: #f4f4f2;
}

/* === Global Settings === */
body {
  font-family: var(--font-montserrat);
  background-color: var(--color-light);
  color: var(--color-black);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

footer {
  text-align: center;
}

/* === Header Styles === */
#header {
  position: relative;
  width: 100%;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
}

/* Nhóm 1: LOGO */
.logo-container img {
  max-height: 60px;
  width: auto;
}

/* Nhóm 2: MENU + NGÔN NGỮ (Căn phải) */
.navbar-center {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto; /* Đẩy nhóm 2 sang phải */
}

.navbar-menu .navbar-nav {
  display: flex;
  gap: 30px;
  font-weight: bold;
}

.navbar-menu .nav-item .nav-link {
  color: var(--color-secondary);
  font-size: 16px;
  transition: color 0.3s ease-in-out;
}

.navbar-menu .nav-item .nav-link:hover {
  color: var(--color-primary);
}

/* Dropdown ngôn ngữ */
.lang-switcher {
  position: relative;
}

.lang-switcher .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  border: 1px solid var(--color-secondary);
  /* background-color: var(--color-white); */
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.lang-switcher .dropdown-toggle:hover {
  border-color: var(--color-primary);
}

.lang-switcher .dropdown-menu {
  position: absolute;
  top: 110%;
  left: 0;
  min-width: 140px;
  border-radius: 8px;
  background-color: var(--color-white);
  display: none;
  z-index: 1000;
}

.lang-switcher .dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--color-white);
  transition: background 0.2s ease-in-out;
}

.lang-switcher .dropdown-menu a:hover {
  background-color: var(--color-light);
}

/* Hiển thị dropdown khi click */
.lang-switcher.open .dropdown-menu {
  display: block;
}

/* Nhóm 3: NÚT CONTACT */
.navbar-right {
  display: flex;
}

.btn-custom {
  padding: 8px 16px;
  font-size: 14px;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 30px;
  transition: all 0.3s ease-in-out;
}

.btn-custom:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.menu-item a {
  color: var(--color-secondary);
  white-space: nowrap;
}

.menu-item a:hover {
  color: var(--color-primary);
}

input, textarea { /* Form contact */
  outline: none;
  font-size: 16px;
}
input:focus, textarea:focus {
  border-color: #1cac78;
  box-shadow: 0 0 5px rgba(28, 172, 120, 0.5);
}

.faq-item {
  transition: all 10s ease-in-out;
}
.faq-item:hover {
  background-color: #ffffff;
}
.faq-item .faq-toggle {
  transition: color 10s ease-in-out;
}
.faq-answer {
  transition: height 10s ease-in-out;
}

#sidebar-menu {
  width: 280px;
  height: 100vh;
  position: fixed;
  top: 0;
  right: 0;
  background: white;
  box-shadow: -2px 0px 10px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
}

#sidebar-menu.open {
  transform: translateX(0);
}

#close-menu {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 24px;
  cursor: pointer;
}

/*------------------------------------------------*/
#sidebar-menu {
  width: 280px;
  height: 100%;
  position: fixed;
  top: 0;
  right: 0; /* Đặt menu bên phải */
  background: white;
  box-shadow: -2px 0px 10px rgba(0, 0, 0, 0.1);
  transform: translateX(100%); /* Ẩn menu khi chưa mở */
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
}

#sidebar-menu.open {
  transform: translateX(0);
}

#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease-in-out;
  z-index: 999;
}

#overlay.active {
  display: block;
  opacity: 1;
}

#close-menu {
  cursor: pointer;
}

/*--------------------contact form 7----------------------------*/
.wpcf7 input,
.wpcf7 textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid #e5e7eb; /* Tailwind border-gray-200 */
  border-radius: 0.75rem; /* rounded-xl */
  font-size: 1rem;
  color: #374151; /* text-gray-700 */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); /* shadow-sm */
}

.wpcf7 textarea {
  height: 120px;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: #9ca3af; /* placeholder-gray-400 */
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 1px #22c55e; /* focus:ring-green-500 */
}

.wpcf7-submit {
  width: 50% !important;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600 !important;
  color: #22c55e !important; /* text-green-500 */
  background-color: transparent !important;
  border: 1px solid #22c55e !important; /* border-green-500 */
  border-radius: 2rem !important;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.wpcf7-submit:hover {
  background-color: #22c55e !important;
  color: white !important;
}


#cf7-toast {
  opacity: 0;
  pointer-events: none;
}

#cf7-toast.show {
  opacity: 1;
  pointer-events: auto;
}
.wpcf7 form .wpcf7-response-output {
  display: none !important;
}

