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

body {
    font-family: 'TT Firs Neue';
    background: url('./img/bg.png') no-repeat center / cover;
    line-height: 1.5;
}

/* App Container */
.app {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding-bottom: 60px;
}

.gr {
    font-size: 12px;
    color: #313c4e99;
}

/* Header */
.header {
    width: 100%;
    background-color: #fff;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-content img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 142px;
}

.logo {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.brand {
    width: 84.67px;
}

/* Main Content */
.main {
    width: 100%;
    max-width: 375px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 100px 10px 0;
}

/* Badge */
.badge-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
}

.badge {
    background-color: #555555;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.07px;
    line-height: 13px;
}

/* Chat Container */
.chat-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0px;
}

/* Message Wrapper */
.message-wrapper {
    position: relative;
    width: 100%;
    padding-left: 40px;
    margin-bottom: 15px;
}

.avatar {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 32px;
    object-fit: cover;
}

/* Message Card */
.message-card {
    background-color: white;
    border-radius: 10px 10px 5px 0px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
    padding: 8px 15px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.message-header {
    font-family: 'TT Firs Neue', sans-serif;
    font-weight: bold;
    font-size: 14px;
    margin-top: -1px;
}

.brand-blue {
    color: #0E65B7;
}

.brand-red {
    color: #0E65B7;
}

.message-content {
     font-family: 'TT Firs Neue';
    color: #313c4e;
    font-size: 14px;
}

.message-content.bold {
    font-weight: bold;
}

.medium {
    font-weight: 500;
}

.bold {
    font-weight: bold;
}

.message-time {
    display: flex;
    justify-content: flex-end;
     font-family: 'TT Firs Neue';
    color: #7a7a7a;
    font-size: 10px;
    margin-top: 5px;
}

/* Question Section */
.question-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    width: 100%;
}

/* Button Group */
.button-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
}

.response-button {
    width: 100%;
    padding: 15px 25px;
    background-color: #0E65B7;
    color: white;
    border: none;
    border-radius: 10px;
     font-family: 'TT Firs Neue';
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.response-button:hover {
    background-color: #095a96;
}

/* User Message */
.user-message-wrapper {
    position: relative;
    width: 100%;
    padding-left: 40px;
    margin-bottom: 15px;
    display: flex;
    justify-content: flex-end;
}

.user-message {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    background-color: #E64920;
    border-radius: 10px 10px 0px 10px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
    color: white;
    width: 100%;
    justify-content: space-between;
}

.user-text {
     font-family: 'TT Firs Neue';
    font-weight: 600;
    font-size: 14px;
    flex: 1;
}

.user-time {
     font-family: 'TT Firs Neue';
    font-size: 10px;
    margin-left: 10px;
    margin-right: 5px;
}

.check-icon {
    font-size: 12px;
    flex-shrink: 0;
}

/* Form Section */
.form-section {
    position: relative;
    width: 100%;
    /* padding-left: 40px; */
    margin-bottom: 15px;
}

.form-section .message-wrapper {
    padding-left: 0;
    max-width: 100%;
}

.form-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px 25px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
    color: #313c4e;
    font-size: 18px;
    text-align: center;
    line-height: 1.3;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form__text,
.form-label {
    font-family: 'IBM Plex Sans', sans-serif;
    color: #313c4e;
    font-size: 14px;
    line-height: 14px;
    text-align: start;
    margin-bottom: 10px;
}

.form-input {
    display: flex;
    align-items: center;
    padding: 14px 17px;
    background-color: #e7f1ff;
    border-radius: 6px;
    border: none;
    width: 100%;
}

.placeholder {
    color: #595959;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 12px;
    line-height: 12px;
}

/* Time Slots */
.time-slots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.time-slot,
.cont__mes {
    display: flex;
    align-items: center;
    padding: 14px 17px;
    background-color: #0E65B7;
    border-radius: 10px;
    color: #fff;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 48%;
    justify-content: center;
}

.time-slot.active,
.cont__mes.active {
    background-color: #E64920;
    color: white;
}

.time-slot:hover:not(.active),
.cont__mes:hover:not(.active) {
    background-color: #0E65B7;
}

/* Phone Input */
.phone-input {
    display: flex;
    align-items: center;
    background-color: #e7f1ff;
    border-radius: 6px;
    overflow: hidden;
}

.country-code {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px 8px;
}

.flag {
    width: 18px;
    height: 12px;
    background: linear-gradient(to bottom, white 33%, #0039a6 33%, #0039a6 66%, #d42b1d 66%);
}

.country-code span {
    color: #595959;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 12px;
}

.arrow {
    font-size: 8px;
}

.phone-placeholder {
    padding: 15px 0;
    color: #595959;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 12px;
    flex: 1;
}

/* Submit Button */
.submit-button {
    width: 100%;
    height: 50px;
    background-color: #0b68ad;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.submit-button:hover {
    background-color: #095a96;
}

/* Responsive Design */
@media (max-width: 400px) {
    .main {
        max-width: 100%;
        padding: 100px 15px 0;
    }
    
    .header {
        max-width: 100%;
    }
    
    .message-wrapper,
    .form-section {
        padding-left: 45px;
    }
    
    .user-message-wrapper {
        padding-left: 45px;
    }
    
    .avatar {
        left: 5px;
    }
}

/* Animation for showing elements */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loadCnt {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    padding: 15px;
    display: none;
    background: #ffffff9c;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.loadScreen {
    display: flex;
    padding: 15px;
    background: #fff;
    box-shadow: 0px 0px 5px 0px #0000001A;
    border-radius: 10px;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 30px;
    z-index: 9999;
}

.loadScreen img {
    max-width: 100px;
}

.preloader {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    position: fixed;
    background: #fff;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.preloader img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 250px;
}
