@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

:root {
    --red-color: rgb(180, 15, 15);
    --default-hover-color: #FFFAF9;
    --primary-color: #FFE6D7;
    --primary-hover-color: #EBE4DF;
    --btn-gradient: linear-gradient(90deg, #FFC5A3, #F7826B);
    --accent-color: #f7826b;
    --accent-color-hover: #da6952;
    --secondary-color: #717171;
    --light-color: #fdf0ed;
    --background-color: rgb(255, 250, 249);
    --background-muted-color: #fff5ef;
    --background-selected-color: #ffcfb3;
    --text-color: #3E3836;
    --text-accent-color: #FC937E;
    --border-color: #E1D3D1;
    --border-accent-color: #3E3836;
    --border-accent-color-hover: #928682;
    --svg-color: #3E3836;
    --svg-hover: #928682;
    --font-family: 'Inter', sans-serif;
    --font-size: 16px;
    --font-line-height: 130%;
    --font-weight: 400;
    --border-button-radius: 8px;
    --border-radius: 8px;
    --transition-duration: 0.15s;
    --max-chat-width: 800px;
    --dplr: 24px;
    --outline-active: 3px solid rgba(247, 130, 107, 0.2) !important;
}


.font-inter {
    font-family: "Inter", sans-serif;
    font-weight: var(--font-weight);
    font-style: normal;
}

.font-dm-sans {
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: var(--font-weight);
    font-style: normal;
}

* {
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
    overscroll-behavior: contain;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: content-box;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    font-size: var(--font-size);
    font-weight: var(--font-weight);
    line-height: var(--font-line-height);
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
    touch-action: manipulation;
    overscroll-behavior: contain;
}

.no-scroll {
    position: fixed;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    font-style: normal;
    line-height: 120%;
    letter-spacing: -0.03em;
    color: var(--accent-color);
}

p {
    padding: 0;
}

a {
    display: inline-flex;
    text-decoration: none;
    color: var(--text-color);
}

.bold { font-weight: 600; }

a:hover {
    text-decoration: underline;
}

a.underline {
    text-decoration: underline;
}

a.underline:hover {
    text-decoration: none;
}

.hover\:bg-muted:hover {
    background-color: var(--secondary-color);
}

.hover\:no-underline:hover { text-decoration: none; }

.underline { text-decoration: underline; }
.underline:hover { text-decoration: none; }

h1 { 
    font-weight: 700;
    font-size: 48px;
}

h2 { 
    font-weight: 700;
    font-size: 32px;
}

.dplr { padding-inline: var(--dplr) }

.rounded { border-radius: 6px; }
.relative { position: relative; }

/* Flex */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.column { flex-direction: column; }
.row { flex-direction: row; }
.flex-x-end { align-items: flex-end; }
.flex-x-center { align-items: center; }
.flex-x-start { align-items: flex-start; }
.flex-y-center { justify-content: center; }
.flex-y-start { justify-content: flex-start; }
.flex-y-end { justify-content: flex-end; }


/* Text */
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-bold { font-weight: 600; }
.text-light { font-weight: 100; }
.text-muted { color: var(--secondary-color); }
.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.text-small { font-size: 12px;}
.text-accent { color: var(--text-accent-color); }
.text-accent a { color: var(--text-accent-color); }
.text-accent a:hover { color: var(--accent-color-hover); }

.font-14 { font-size: 14px; }
.font-16 { font-size: 16px; }
.font-18 { font-size: 18px; }
.font-20 { font-size: 20px; }
.font-24 { font-size: 24px; }
.font-28 { font-size: 28px; }

/* Heights */
.h-64 { height: 64px; }
.h-72 { height: 72px; }

/* Widths */
.w-16 { width: 16px; }
.w-24 { width: 24px; }
.w-42 { width: 42px; }

/* Heights */
.h-16 { height: 16px; }
.h-24 { height: 24px; }
.h-42 { height: 42px; }

/* Margins */
.mb-24 { margin-bottom: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 4px; }
.mt-64 { margin-top: 64px; }
.mt-32 { margin-top: 32px; }
.mt-24 { margin-top: 24px; }
.mt-16 { margin-top: 16px; }
.mt-12 { margin-top: 12px; }
.mt-8 { margin-top: 8px; }
.mt-4 { margin-top: 4px; }

.ml-8 { margin-left: 8px; }

/* Gaps */
.g-32 { gap: 32px; }
.g-24 { gap: 24px; }
.g-16 { gap: 16px; }
.g-12 { gap: 12px; }
.g-8 { gap: 8px; }
.g-4 { gap: 4px; }

/* Paddings */
.px-24 { padding-left: 24px; padding-right: 24px; }
.p-12 { padding: 12px; }
.p-8 { padding: 8px; }
.py-24 { padding-top: 24px; padding-bottom: 24px; }
.py-32 { padding-top: 32px; padding-bottom: 32px; }

/* Borders */
.border-b { border-bottom: 1px solid var(--border-color); }
.border-t { border-top: 1px solid var(--border-color); }
.border-l { border-left: 1px solid var(--border-color); }
.border-r { border-right: 1px solid var(--border-color); }

.nav-link {    
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    line-height: 120%;
    text-align: center;
    letter-spacing: -0.03em;
    color: var(--accent-color);
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: #FDB3A4;
    text-decoration: none;
}

/* SVGs */

svg path {
    transition: all ease var(--transition-duration);
}

.svg svg path {
    stroke: var(--text-color);
}

.svg:hover svg path, 
.svg:hover svg circle,
.svg:hover svg rect {
    stroke: var(--svg-hover);
}

button.svg {
    border: none;
    background: transparent;
    padding: 0;
    display: flex;
    cursor: pointer;
    position: relative;
}


/* Buttons */
.btn {
    background-color: #FDB3A4;
    background: var(--btn-gradient);
    color: white;
    border: none;
    border-radius: var(--border-button-radius);
    padding: 14px 24px;
    cursor: pointer;
    transition: all var(--transition-duration) ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: var(--font-size);
    position: relative;
    text-decoration: none !important;
    line-height: var(--font-line-height);
    font-family: var(--font-family);
    font-weight: 700;
    line-height: 110%;
    letter-spacing: -0.02em;
    overflow: hidden;
}

.btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.btn:active {
    outline: var(--outline-active);
}

.btn > div:first-child {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 1;
    transition: var(--transition-duration) linear all;
}

.btn:hover > div:first-child {
    background-color: #FDB3A4;
}

.btn > div:last-child {
    position: relative;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.btn:hover {

}

.btn\:menu {
    background-color: transparent;
    border: 0;
    text-decoration: none;
    color: var(--text-color);
}


.btn\:big {
    padding: 16px 60px;
    font-size: 24px;
    line-height: 110%;
    font-weight: 700;
    letter-spacing: -0.02em;
    gap: 10px;
    border-radius: 12px;
}

.btn\:small\:border {
    border: 1px solid var(--border-accent-color);
}

.btn\:small {
    background: none;
    padding: 8px 12px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    line-height: 110%;
    font-weight: 700;
    letter-spacing: -0.02em;
    gap: 8px;
    border-radius: var(--border-radius);
    color: var(--text-color);
    background-color: var(--primary-color);
}

.btn\:small:hover {
    background-color: #FFEEE4;
}


.btn\:light {
    background: none;
    background-color: white;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    text-decoration: none;        
}

.btn\:light:hover {
    border-color: var(--border-accent-color-hover);
    background-color: var(--default-hover-color);
}

button:focus-within .dropdown, 
.dropdown:focus {
    display: flex;
}

.btn\:block {
    width: 100%;
}

.btn\:text-left {
    justify-content: flex-start;
}

.btn\:primary {    
    color: white;   
    background: var(--btn-gradient);
    transition: 0.2s linear all;
}

.btn\:noborder {
    border: none;
}

.btn\:clear {
    background-color: transparent;
    border: none;
    cursor: pointer ;
}

/* Tooltips */
.tooltip {
    position: absolute;
    top: -9999px;
    left: -9999px;
    background-color: black;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    display: flex;
    opacity: 0;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    background-color: black;
    width: 8px;
    height: 8px;
}

.tooltip.show {
    opacity: 1;
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 30px;
    right: 0;
    background: var(--background-color);
    min-width: 140px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    display: none;
    z-index: 10;
    overflow: hidden;
}

.dropdown a {
    padding: 8px 16px;
    color: var(--text-color);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    font-size: 16px;
    line-height: 100%;
    display: flex;
    align-items: center;
    min-height: 40px;
}

.dropdown a:last-child {
    border-bottom: none;
}

.dropdown a:hover {
    text-decoration: none;
    background-color: #FDE2DD;
}

.dropdown a.active {
    background-color: #FDE2DD;
}

.wrapper, .container {
    height: calc(100dvh - 72px);
    display: flex;
    flex-direction: column;
}

/* Sidebar */
.sidebar {
    width: 320px;
    padding: 16px;
    background-color: var(--background-muted-color);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
}

.label {
    font-size: 12px;
    color: var(--secondary-color);
    font-weight: 500;
    display: flex;
    gap: 8px;
}

.history-item {
    color: var(--text-color);
    padding: 16px;
    border-radius: var(--border-button-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: column;
    user-select: none;
}

.history-item:hover {
    background-color: var(--background-selected-color);
}

.history-item\:header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.history-item\:title {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
    max-width: 100%;
    text-overflow: ellipsis;
} 

.history-item\:date,
.history-item\:message,
.chat\:message\:date {
    color: var(--secondary-color);
    font-size: 12px;
    font-weight: 400;
    line-height: 140%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;    
}

/* Chat */

.container\:row,
.container\:column {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 100%;    
}

.container\:column {
    flex-direction: column;
}

.container\:column\:narrow {
    max-width: 1320px;
    padding-inline: var(--dplr);
    margin-inline: auto;
    width: 100%;
}


.chat {
    display: flex;
    flex-direction: column;
    width: auto;
    flex: 1;
    background-color: var(--background-color);
}

.chat\:header,
.page\:header {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 64px;
    font-weight: 600;
    font-size: 16px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.chat\:window {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;   
    padding-inline: var(--dplr); 
    position: relative;
}


.chat\:type-message {
    padding-inline: var(--dplr);
    padding-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 2;
    position: relative;
}

.chat\:input {
    width: 100%;
    display: flex;
    max-width: var(--max-chat-width);
    position: relative;
    gap: 8px;
}

.chat\:input\:wrapper {
    border: 1px solid var(--border-accent-color);
    min-height: 52px;
    display: flex;
    width: 100%;
    background: white;
    border-radius: 26px;
    overflow: hidden;
    align-items: flex-end;
}

.chat\:input textarea {
    border: none;
    width: 100%;
    height: 100%;   
    background-color: white;
    max-height: 256px;
    font-family: var(--font-family);
    font-weight: var(--font-weight);
    font-size: 18px;
    padding: 15px 16px 10px;
    resize: none;
}

.chat\:input textarea:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.chat\:input\:buttons {
    display: flex;
    align-items: center;
    gap: 4px;
    position: absolute;
    bottom: 7px;
    right: 4px;
    z-index: 2;
}

.chat\:input\:buttons.left {
    left: 4px;
    right: auto;
}

.chat\:input\:buttons button,
.chat\:input\:buttons a {
    background-color: transparent;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all ease var(--transition-duration);
    padding: 4px;
    box-sizing: content-box;
}

.chat\:input\:buttons button:active,
.chat\:input\:buttons a:active {
    outline: var(--outline-active);
}

.chat\:input\:send,
.chat\:input\:stop {
    background-color: var(--accent-color) !important;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all ease var(--transition-duration);
    cursor: pointer;
}

.chat\:input\:attach {
    width: 52px;
    min-width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-accent-color);
    background-color: transparent;
    cursor: pointer;
    transition: all ease var(--transition-duration);
}

.chat\:input\:attach:hover {
    border-color: var(--border-accent-color-hover);
    background-color: var(--primary-hover-color);
}

.chat\:input\:send:hover {
    background-color: var(--accent-color-hover) !important;
}

.chat\:input\:stop {
    background-color: #dd4840 !important;
}

.chat\:input\:buttons button:hover,
.chat\:input\:buttons a:hover {
    background-color: var(--background-selected-color);
}

.chat\:input\:send:disabled {
    background-color: var(--background-selected-color) !important;
    cursor: not-allowed;
}

.chat\:loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;   
    padding: 8px;
    font-size: 12px;
    transition: 0.3s ease-in all;
    transition-delay: 0.1s;
    position: absolute;
    margin: 0 auto;
    top: 0;
    top: -38px;
    z-index: 1;
    width: 100%;
    opacity: 0;
    color: var(--text-accent-color);
}

.chat\:loading.show {  
    opacity: 0.5;
}


.chat\:loading svg {
    animation: spin 1s linear infinite;
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center; 
    padding: 8px;
    font-size: 12px;
    transition: 0.3s ease-in all;
    transition-delay: 0.1s;
    z-index: 1;    
}

.loading.show {  
    opacity: 0.5;
}


.loading svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.chat\:message {   
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: auto;
    margin-right: auto;
    margin-left: 0;
    word-break: break-word;

    font-family: "DM Sans", sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 18px;
}

.chat\:message.first {
    background: none;
    text-align: center;
    color: var(--text-color);
    width: 100%;
}

.chat\:images {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row-reverse;
    margin-bottom: -10px;
    gap: 6px;
}

.chat\:images div {
    width: 180px;
    height: 180px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--background-selected-color);
    animation: breathe 2s ease-in-out infinite; 
}

.chat\:images div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.chat\:message.user {
    background-color: var(--primary-color);
    color: #fafafa;
    margin-left: auto;
    margin-right: 0;
    padding: 16px 24px;
    border-radius: var(--border-radius);
    color: var(--text-color);
}

.chat\:message:first-child{
    margin-top: 48px;
}

.chat\:message:last-child {
    margin-bottom: 48px;
}

.chat\:wrapper {
    max-width: var(--max-chat-width);
    width: 100%;
    margin: 0 auto;
    gap: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.chat\:message\:text {

}

.chat\:message\:text p:first-child {
    margin-top: 0;
}

.chat\:message\:text p:last-child {
    margin-bottom: 0;
} 

.chat\:message.gallery {
    width: 100%;
}

.chat\:message\:gallery {
    display: flex;
    gap: 24px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.chat\:message\:gallery > div {
    max-width: calc((100% - 24px * 2) / 3);
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;   
    overflow: hidden;
    border: none; 
    position: relative;
}

.chat\:message\:gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    object-fit: cover;  
    border-radius: var(--border-radius);  
    overflow: hidden;
}

.chat\:message\:gallery img:hover {
    cursor: zoom-in;
}

.chat\:message\:gallery .btn-ar {
    position: absolute;
    left: 10px;
    top: 10px;
}

.chat\:message\:gallery\:materials {
    display: flex;
    gap: 8px;
    top: 8px;
    right: 8px;
    flex-direction: column;
    position: absolute;
}

.chat\:message\:gallery\:materials\:slot {
    width: 32px;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    background-color: white;
}

.chat\:message\:gallery\:materials\:slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: default;
}

.chat\:message\:gallery\:materials\:slot img:hover {
    cursor: default;
}

.chat\:message\:gallery\:materials\:slot-empty {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: transparent;
}


.mobile-menu {
    display: flex;
    background-color: var(--background-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-inline: var(--dplr);
    z-index: 100;
    gap: 16px;
    flex-direction: column;
    justify-content: space-between;
    transform: translateY(-100%);
    transition: 0.3s ease all;
}

.mobile-menu.open {
    display: flex;
    transform: translateY(0);
}

.mobile-menu\:header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    height: 48px;
}

.mobile-menu\:footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 16px;
    height: 64px;
    padding-bottom: 24px;
} 

.mobile-menu .nav-link {
    font-size: 28px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--background-color);
    font-size: 14px;
    font-family: var(--font-family);
    font-weight: var(--font-weight);
    color: var(--text-color);
    transition: var(--transition-duration) ease;
    box-sizing: border-box;
    max-width: 100%;
    background-color: white;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(113, 113, 113, 0.25);
}

input[type="text"].error,
input[type="email"].error,
input[type="tel"].error,
textarea.error {
    border-color: var(--red-color);     
    box-shadow: 0 0 0 2px rgba(180, 15, 15, 0.25);
    animation: focus 0.3s ease forwards;  
}

input[type="text"].error:focus,
input[type="email"].error:focus,
input[type="tel"].error:focus,
textarea.error:focus {
    box-shadow: 0 0 0 2px rgba(180, 15, 15, 0.25);
    animation: focus 0.3s ease forwards;
}

@keyframes focus {
    0% {
        box-shadow: 0 0 0 6px transparent;
    }
    100% {
        box-shadow: 0 0 0 2px rgba(180, 15, 15, 0.25);
    }
}

.dummy {
    animation: breathe 2s ease-in-out infinite;
    display: flex;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--background-selected-color);
}

@keyframes breathe {
    0%, 100% {
        background-color: var(--background-muted-color);
    }
    50% {
       background-color: var(--background-selected-color);
    }    
}

.group {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    padding: 16px;
    border: 1px solid var(--border-accent-color);
    border-radius: 14px;
    background-color: var(--background-color);
    overflow: hidden;
}

.group .title {
    font-weight: 600;
    font-size: 16px;
    margin-top: 4px;
    margin-inline: 8px;
}

.gray-bg {
    background-color: var(--background-muted-color);
}

/* Feedback Form */

.modal {
    position: relative;
    border: none;
    z-index: 10;
    overflow: hidden;
    max-height: calc(100vh - var(--dplr) * 2);
    overflow-y: auto;
}

.modal\:close {
    position: absolute;
    top: 18px;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform var(--transition-duration) ease;
    z-index: 3;
    outline: none;
}

.modal\:close:hover {
    transform: scale(1.1);
}

.modal\:response {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 2;
}

.modal\:form\:error {
    position: absolute;
    display: flex;
    font-size: 12px;
    color: var(--red-color);
    opacity: 0;
    font-style: italic;
    margin-top: 2px;
    height: 15px;
    transition: opacity 0.15s linear;
}

.modal\:form\:error.active {
    opacity: 1;
}

.lightbox-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--dplr);
}

.modal {
    background-color: var(--background-color);
    padding: 24px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    max-width: 600px;
    width: 100%;
}
.modal-container {
    display: none;
    animation: deployBackwards 0.3s ease forwards;
}

.modal-container.active {
    display: flex;
    animation: deploy 0.3s ease forwards;
}

.modal-container.active .modal {
    animation: zoomIn 0.2s ease forwards;
}

.modal-container .modal {
    animation: zoomOut 0.2s ease forwards;
}

.modal\:photo\:uploader {
    aspect-ratio: 16 / 9;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 8px;
    border-radius: var(--border-radius);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background-color var(--transition-duration) ease;
    margin: -16px;
}

.modal\:photo\:uploader:hover {
    background-color: white;
}

.modal\:loading {
    background-color: var(--background-muted-color);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    flex-direction: column;
    transition: var(--transition-duration) ease all;
    opacity: 0;
}

.modal\:loading.active {
    opacity: 1;
}

.modal\:photo\:preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius);
    opacity: 0;
    position: absolute;
    transition: 0.1s linear all;
}

.modal\:photo\:preview.active {
    opacity: 1;
}

.modal\:visual-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    padding: var(--dplr);
}

.modal\:visual-loading.active {
    display: flex;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: zoom-out;    
}

.lightbox.active {
    display: flex;
    animation: deploy 0.3s ease forwards;
}

.lightbox {
    animation: deployBackwards 0.3s ease forwards;
}

.lightbox img {
    max-width: calc(100% - var(--dplr) * 2);
    max-height: calc(100% - var(--dplr) * 4);
    object-fit: contain;
    cursor: zoom-out;
    opacity: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    user-select: none;    
}


.lightbox .close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 16px;
    cursor: pointer;
    background: none;
    border: none;
    transform: scale(1);
    transition: transform var(--transition-duration) ease;
}

.lightbox .close:hover {
    transform: scale(1.1);
}

.lightbox img.active {
    animation: zoomIn 0.3s ease forwards;
} 

@keyframes deploy {
    0% {
        display: none;
        opacity: 0;
    }
    1% {
        display: flex;
        opacity: 0;
    }
    100% {
        display: flex;
        opacity: 1;
    }
}

@keyframes deployBackwards {
    0% {
        display: flex;
        opacity: 1;
    }
    99% {
        display: flex;
        opacity: 0;
    }
    100% {
        display: none;
        opacity: 0;
    }
}

@keyframes zoomIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes zoomOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.8);
        opacity: 0;
    }
}