.ai-tool {
    padding-bottom: 40px;
}

.ai-tool-title {
    color: #062431;
    text-align: center;
    font-family: Barlow;
    font-size: 32px !important;
    font-style: normal;
    font-weight: 800 !important;
    line-height: normal !important;
    text-transform: uppercase;
    padding: 80px 20px 40px !important;
}
.ai-tool-heading {
    color: #062431;
    font-family: Barlow;
    font-size: 14px !important;
    font-style: normal;
    font-weight: 800 !important;
    line-height: normal !important;
    text-transform: uppercase;
    margin-bottom: 0 !important;
}
.ai-tool-wrapper {
    margin: 0 auto;
    display: flex;
    max-width: 728px;
    width: calc(100% - 2 * 40px);
    height: auto;
    padding: 40px 54px;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border-radius: 8px;
    border: 0.5px solid #DBE1E8;
    background: #FFF;
    box-shadow: 0px 5px 12px 0px rgba(6, 36, 49, 0.05);
}

@media screen and (min-width: 481px) {
    .ai-tool-wrapper {
        padding: 40px 72px;
    }
}

.ai-tool-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-top: 12px;
}
.ai-tool-input,
.ai-tool-textarea {
    width: 100%;
    border-radius: 4px !important;
    border: 1px solid #BAC8CE !important;
    background: #FFF;
    display: flex;
    height: 40px;
    padding: 8px 12px;
    color: var(--Dark, #052330);
    /* color: #7A8E96; */
    text-overflow: ellipsis;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    caret-color: currentColor;

    font-optical-sizing: auto;
    font-variation-settings: "slnt" 0, "wght" 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.ai-tool-input::placeholder,
.ai-tool-textarea::placeholder {
    color: #7A8E96;
    opacity: 0.7;
}

.ai-tool-input {
    overflow: hidden;
}

.ai-tool-textarea  {
    min-height: 110px;
    height: auto;
    padding: 16px 12px;
    overflow-y: auto;
    max-height: 360px;
    field-sizing: content;
    &:focus-visible {
        border: none;
        outline: none;
    }
}

.ai-tool-textarea--recording {
    min-height: calc(1.5lh + 22px);
    height: calc(1.5lh + 22px) !important;
    max-height: calc(1.5lh + 22px);
    overflow: hidden;
    padding-top: 9px;
    padding-bottom: 9px;
    color: transparent;
    caret-color: transparent;
    resize: none;
}

.ai-tool-textarea--recording::placeholder {
    color: transparent;
    opacity: 0;
}

#ai-describe-counter {
    color: #062431b8;
    font-family: Barlow;
    font-size: 12px !important;
    font-style: normal;
    font-weight: 500 !important;
    line-height: normal !important;
}

.ai-tool-input-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 4px;

}

.ai-tool-input:focus-visible {
    outline: none;
}

.ai-input-toolbar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    justify-content: space-between;
    align-items: stretch;
}

@media screen and (min-width: 576px) {
    .ai-input-toolbar {
        display: flex;
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }
}

.ai-tool-submit:disabled,
.ai-tool-submit.is-uploading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}
.ai-tool-submit, .ai-tool-reset {
    display: flex;
    padding: 8px 28px 8px 24px;
    justify-content: center;
    align-items: center;
    gap: 12px;
    border-radius: 6px;
    border: none;
    background: linear-gradient(180deg, #FF7C47 0%, #FC1D5A 100%);
    color: #FFF;
    text-align: center;
    font-family: Inter;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px; /* 200% */
    text-transform: uppercase;
}

.ai-tool-reset {
    background: var(--Dark-2, #1A3947);
}




/* custom dropzone */
.dropzone {
    border: none !important;
    min-height: unset !important; 
    padding: 0 !important;
}
.custom-dropzone-area {
    border-radius: 4px;
    border: 1px dashed #BAC8CE;
    background: #FFF;
    text-align: center;
    background: #FFF;
    max-width: 580px;
    width: 100%;
    min-height: 110px;
}
.custom-dropzone-message {
    color: #FC1D5A;
    font-size: 18px;
    font-family: Barlow;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 43px auto 0;
}
.custom-dropzone-text {
    color:  #0095FF;
    font-family: Barlow;
    font-size: 14px;
    font-style: normal;
    font-weight: 800;
    line-height: normal; /* 142.857% */
    text-transform: uppercase;
}
.custom-dropzone-icon {
    line-height: normal;
}
.custom-preview-list {
    margin: 16px;
}
.custom-preview-item {
    display: flex;
    align-items: center;
    background: #FFF;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(252,29,90,0.08);
    padding: 8px 16px;
    margin-bottom: 8px;
    gap: 16px;
}
.custom-preview-thumb img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #FF7C47;
}
.custom-preview-details {
    flex: 1;
    text-align: left;
    min-width: 0;
}
.custom-preview-filename {
    font-weight: 700;
    color: #062431;
    margin-right: 8px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.custom-preview-size {
    color: #7A8E96;
    font-size: 12px;
}
.custom-preview-progress {
    background: #FDE3DB;
    border-radius: 4px;
    height: 6px;
    margin: 6px 0;
    width: 100%;
}
.custom-preview-upload {
    display: block;
    height: 6px;
    background: linear-gradient(90deg, #FF7C47 0%, #FC1D5A 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}
.custom-preview-upload.is-complete {
    background: linear-gradient(90deg, #6FB622 0%, #4F9A1C 100%);
}
.custom-preview-error {
    color: #FC1D5A;
    font-size: 12px;
}
.custom-preview-remove {
    background: none;
    border: none;
    color: #FC1D5A;
    font-size: 24px;
    cursor: pointer;
    margin-left: 8px;
}

#ai-form-enter-dates .ai-tool-wrapper-fluid {
    margin: 0 auto;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#ai-form-enter-dates h1.ai-tool-title {
    margin-bottom: 0;
    padding-bottom: 0 !important;
}

@media screen and (max-width: 1200px) {
    #ai-form-enter-dates h1.ai-tool-title {
        padding-top: 40px !important;
        font-size: 24px !important;
    }
}

#ai-form-enter-dates .ai-calendar {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    justify-content: center;
    user-select: none;
}

#ai-form-enter-dates .calendar-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #062431;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#ai-form-enter-dates .calendar-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

@media screen and (pointer: fine) {
    #ai-form-enter-dates .calendar-nav:not(:disabled):hover {
        background: var(--Green, #6FB622);
    }
}

#ai-form-enter-dates .calendar-nav-icon {
    display: flex;
    line-height: 1;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    flex-direction: row;
    pointer-events: none;
    user-select: none;
}

#ai-form-enter-dates .calendar-months {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: nowrap;
    position: relative;
}

#ai-form-enter-dates .calendar-months.is-animating {
    pointer-events: none;
    will-change: transform, opacity;
}

#ai-form-enter-dates .calendar-months.is-animating-forward {
    animation: ai-calendar-slide-forward 220ms ease forwards;
}

#ai-form-enter-dates .calendar-months.is-animating-backward {
    animation: ai-calendar-slide-backward 220ms ease forwards;
}

#ai-form-enter-dates .calendar-month {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 352px;
    flex: 0 0 auto;
    padding: 20px;
    border-radius: 8px;
    border: 0.5px solid #DBE1E8;
    background: var(--White, #FFF);
    box-shadow: 0 5px 12px 0 rgba(6, 36, 49, 0.05);
}

#ai-form-enter-dates .calendar-month-title {
    color: var(--Dark, #052330);
    text-align: center;
    font-family: Barlow;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: uppercase;
}

#ai-form-enter-dates .calendar-weekdays,
#ai-form-enter-dates .calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

#ai-form-enter-dates .calendar-weekday {
    color: rgba(6, 36, 49, 0.45);
    text-align: center;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

#ai-form-enter-dates .calendar-day {
    position: relative;
    width: 32px;
    height: 32px;
    margin: 0 auto;
    border-radius: 8px;
    background: var(--Green, #6FB622);
    border: none;
    background: transparent;
    color: var(--7A8E96, #7A8E96);
    font-family: Inter;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.1s ease, color 0.1s ease;
    padding: 0;
}

#ai-form-enter-dates .calendar-day.is-placeholder {
    cursor: default;
    visibility: hidden;
}

#ai-form-enter-dates .calendar-day.is-disabled {
    cursor: not-allowed;
    /* opacity: 0.5; */
}

#ai-form-enter-dates .calendar-day:not(.is-disabled):hover {
    box-shadow: inset 0 0 32px 32px rgb(255 255 255 / 0.1);
}

@media screen and (pointer: fine) {
    #ai-form-enter-dates .calendar-day:not(.is-disabled):not(.is-selected):not(.is-selected):hover {
        background: color-mix(in srgb, var(--Green, #6FB622) 20%, transparent);
        color: #062431;
    }
}

#ai-form-enter-dates .calendar-day.is-in-range {
    background: var(--Green, #6FB622);
    color: var(--White, #FFF);
}

#ai-form-enter-dates .calendar-day.is-selected-start,
#ai-form-enter-dates .calendar-day.is-selected-end,
#ai-form-enter-dates .calendar-day.is-single {
    background: #6FB622;
    color: #fff;
}

#ai-form-enter-dates .calendar-day:focus-visible {
    outline: 2px solid #40AFFF;
    outline-offset: 2px;
}

#ai-form-enter-dates .ai-tool {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 40px;
}

#ai-form-enter-dates .ai-tool-inner {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 60px;
}

#ai-form-enter-dates .ai-tool button[type="submit"] {
    margin: 0 auto;
    border-radius: 6px;
    border: 0;
    background: linear-gradient(45deg, #F55420 0%, #FF8C1A 81.91%), linear-gradient(180deg, #FF7C47 0%, #FC1D5A 100%);

    width: 324px;
    min-width: 100px;
    max-width: 90vw;
    color: #FFF;
    text-align: center;
    font-family: Inter;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px; /* 200% */
    text-transform: uppercase;

    display: flex;
    height: 40px;
    padding: 8px 28px;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

#ai-form-enter-dates .minical-wrapper {
    display: inline-flex;
    padding: 0 28px;
    align-items: center;
    align-content: center;
    gap: 0 28px;
    flex-wrap: wrap;
    border-radius: 8px;
}

#ai-form-enter-dates .minical-wrapper .minical {
    display: flex;
    width: 90px;
    height: 90px;
    flex-direction: column;
    align-items: center;
    gap: 7.5px;
    border-radius: 9px;
    background: var(--White, #FFF);
    box-shadow: 0 2px 2.8px 0 rgba(0, 0, 0, 0.12);
    contain: paint;
}

#ai-form-enter-dates .minical-wrapper .minical .minical-header {
    width: 90px;
    height: 27px;
    flex-shrink: 0;
    background: linear-gradient(0deg, var(--Green, #6FB622) 0%, var(--Green, #6FB622) 100%), linear-gradient(0deg, #56980E 0%, #86D62F 100%), linear-gradient(0deg, #0073C5 0%, #40AFFF 100%);
    color: #FFF;
    text-align: center;
    font-family: Barlow;
    font-size: 15px;
    font-style: normal;
    font-weight: 700;
    line-height: 27px; /* 180% */
    text-transform: uppercase;
}

#ai-form-enter-dates .minical-wrapper .minical .minical-body {
    width: 45px;
    color: var(--Dark-2, #1A3947);
    text-align: center;
    font-family: Barlow;
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

/*
#ai-form-enter-dates .minical-wrapper .minical.is-empty .minical-header {
    background: #E4EBEF;
    color: #062431;
}
*/

#ai-form-enter-dates .minical-wrapper .minical.is-empty .minical-body {
    opacity: 0.5;
}

#ai-form-enter-dates .minical-wrapper .minical-delimiter {
    width: 32px;
    height: 4px;
    background: var(--Dark-2, #1A3947);
}

@keyframes ai-calendar-slide-forward {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes ai-calendar-slide-backward {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    #ai-form-enter-dates .calendar-months.is-animating {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

@media (max-width: 767px) {
    .ai-tool-title {
        font-size: 22px !important;
        padding: 40px 16px 24px !important;
    }

    .ai-tool-wrapper {
        width: calc(100% - 2 * 16px);
        padding: 24px 16px;
        gap: 16px;
    }

    .custom-dropzone-message {
        flex-direction: column;
        gap: 6px;
        margin: 28px 12px 0;
    }

    .custom-dropzone-text {
        font-size: 12px;
    }
}

@media (max-width: 1200px) {
    #ai-form-enter-dates .ai-calendar {
        gap: 8px;
    }

    #ai-form-enter-dates .calendar-months {
        flex-wrap: wrap;
    }

    #ai-form-enter-dates .calendar-month {
        width: min(calc(95vw - 2 * 32px - 2 * 8px), 352px);
        margin: 0 auto;
        padding: 16px 8px;
    }

    #ai-form-enter-dates .calendar-nav {
        width: 32px;
        height: 32px;
    }

    #ai-form-enter-dates .calendar-weekdays, #ai-form-enter-dates .calendar-days {
        gap: 4px;
    }

    #ai-form-enter-dates .calendar-day {
        font-size: 12px;
    }
}
