.form-page-body,
.thank-you-body,
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
    background: var(--light);
}

.wrapper {
    background: var(--white);
    padding: 2rem;
    max-width: 576px;
    width: 100%;
    border-radius: .75rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.wrapper h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.form-group {
    text-align: left;
    margin-bottom: 1.25rem;
    position: relative; 
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 0.9rem;
}

/* Text muted for hints */
.text-muted {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Company and Location Fields - Side by Side */
/* REMOVED THE CONFLICTING FLEX RULES - Bootstrap handles this now */

/* Search Container with Magnifier Icon */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-container .form-control {
    flex: 1;
    padding-right: 40px; /* Make space for the icon */
    border-radius: 0.5rem;
    border: none;
    outline: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.search-container .form-control:focus {
    transform: scale(1.01);
    box-shadow: 0 0 0 3px rgba(67, 131, 255, 0.25);
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-icon:hover {
    color: #333;
}

/* Rating Stars */
.rating {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    font-size: 2rem;
    color: var(--yellow);
    margin-bottom: 1rem;
}

.rating .star {
    cursor: pointer;
    transition: all .2s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rating .star:hover {
    transform: scale(1.1);
    text-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.rating .star.active {
    opacity: 0;
    animation: animate .5s calc(var(--i) * .1s) ease-in-out forwards;
}

@keyframes animate {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

textarea {
    width: 100%;
    background: var(--light);
    padding: 1rem;
    border-radius: .5rem;
    border: none;
    outline: none;
    resize: none;
    margin-top: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    min-height: 100px;
}

textarea:focus {
    transform: scale(1.01);
    box-shadow: 0 0 0 3px rgba(67, 131, 255, 0.25);
}

.feedback-tags {
    margin: 1.5rem 0;
    background-color: transparent;
    border: 1px solid var(--blue);
    border-radius: .5rem;
    padding: 1.25rem;
    box-shadow: 0 3px 10px rgba(67, 131, 255, 0.1);
}

.feedback-tags h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    color: #333;
}

.tags {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.tag {
    background-color: var(--white);
    border: 1px solid #ddd;
    color: #333;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tag:not(.selected):hover {
    background-color: var(--light);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.tag.selected {
    background-color: var(--blue);
    color: var(--white);
    border-color: var(--blue);
    box-shadow: 0 3px 10px rgba(67, 131, 255, 0.3);
}

.popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--white);
    padding: 2.5rem;
    border-radius: .75rem;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.company-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 1rem;
}

.checkmark-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.popup-content h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 1.5rem 0;
}

/* Technician Search Dropdown */
.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 .5rem .5rem;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    display: none;
}

.dropdown-list .item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.dropdown-list .item:hover {
    background-color: #f0f0f0;
}

.dropdown-list .item:last-child {
    border-bottom: none;
}

/* Suggestions (alternative style - keep for compatibility) */
.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 .5rem .5rem;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    display: none;
}

.suggestions div {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.suggestions div:hover {
    background-color: #f0f0f0;
}

.suggestions div:last-child {
    border-bottom: none;
}

/* Enhanced form controls */
.form-control {
    width: 100%;
    padding: .75rem 1rem;
    background: var(--light);
    border: 1px solid #ddd;
    border-radius: .5rem;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    outline-color: var(--blue);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: scale(1.01);
}

/* Enhanced buttons */
.btn {
    width: 100%;
    padding: .75rem 1rem;
    border-radius: 50px;
    border: 1px solid transparent;
    outline: none;
    cursor: pointer;
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all .3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.btn.submit {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

.btn.submit:hover {
    background: var(--blue-d-1);
    border-color: var(--blue-d-1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 131, 255, 0.4);
}

.btn.cancel {
    background: var(--white);
    color: var(--blue);
    border-color: var(--light);
}

.btn.cancel:hover {
    background: var(--light);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Enhanced select dropdown */
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    /* REMOVED THE CONFLICTING FLEX RULES */
    /* Bootstrap's grid will handle mobile responsiveness */
    
    .wrapper {
        padding: 1.5rem;
    }
    
    .wrapper h3 {
        font-size: 1.25rem;
    }
    
    body {
        padding: 0.5rem;
    }
    
    .tags {
        grid-template-columns: 1fr; 
        gap: 0.5rem;
    }
    
    .rating {
        font-size: 1.5rem; 
        gap: 0.25rem;
    }
    
    .form-group {
        margin-bottom: 1rem; 
    }
    
    .search-container .form-control {
        padding: 0.75rem 35px 0.75rem 0.75rem; 
    }
    
    .search-icon {
        right: 10px;
    }
    
    .popup-content {
        padding: 2rem 1.5rem; 
    }
    
    .feedback-tags {
        padding: 1rem; 
    }
}