* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Georgia', serif;
    background-color: #fef9e7;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #5a5a5a;
}

.chat-container {
    width: 100vw;
    height: 100vh;
    background-color: #fffdf6;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    padding: 25px;
    background-color: #2e7d32;
    color: white;
    text-align: center;
    font-weight: 700;
    font-size: 1.4rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page {
    display: none;
    flex-direction: column;
    height: 100%;
}

.page.active {
    display: flex;
}

.form-container {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f8f5ec;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
}

.input-group label {
    font-weight: 600;
    color: #5a5a5a;
    font-size: 0.9rem;
}

.input-group input,
.input-group select,
.input-group textarea {
    padding: 12px 16px;
    border: 2px solid #e0d9c0;
    border-radius: 8px;
    outline: none;
    font-size: 1rem;
    background: #fff;
    font-family: 'Georgia', serif;
    transition: all 0.3s;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46,125,50,0.2);
}

::placeholder {
    color: #888;
    opacity: 1;
}

.radio-group {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: normal;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.radio-option:hover {
    background-color: #f0e6d2;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 16px;
    height: 16px;
    border: 2px solid #e0d9c0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.radio-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #2e7d32;
    opacity: 0;
    transition: opacity 0.2s;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #2e7d32;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    opacity: 1;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: #5a5a5a;
}

.submit-button {
    padding: 14px 20px;
    background-color: #2e7d32;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
    font-size: 1rem;
    margin-top: 10px;
}

.submit-button:hover {
    background-color: #388e3c;
}

.location-button {
    padding: 10px 16px;
    background-color: #f0e6d2;
    color: #5a5a5a;
    border: 1px solid #e0d9c0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.location-button:hover {
    background-color: #e0d9c0;
}

.hidden {
    display: none !important;
}

.system-message {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin: 20px 0;
    padding: 12px;
    background-color: #f8f9f5;
    border-radius: 8px;
    border-left: 3px solid #2e7d32;
}

.field-validation {
    font-size: 0.8rem;
    margin-top: 5px;
    min-height: 16px;
}

.field-validation.error {
    color: #8f8f8f;
}

.checkmark {
    position: absolute;
    right: 12px;
    top: 38px;
    width: 20px;
    height: 20px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.checkmark.visible {
    opacity: 1;
}

.checkmark::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 5px;
    border-left: 2px solid #2e7d32;
    border-bottom: 2px solid #2e7d32;
    transform: rotate(-45deg);
    top: 6px;
    left: 4px;
}

.help-icon {
    position: absolute;
    right: 12px;
    top: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #888;
    color: white;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 2;
    opacity: 1;
}

.help-icon.hidden {
    opacity: 0;
    pointer-events: none;
}

.help-icon:hover {
    background-color: #666;
    transform: scale(1.1);
}

.form-container::-webkit-scrollbar {
    width: 6px;
}

.form-container::-webkit-scrollbar-track {
    background: #f0ede3;
    border-radius: 3px;
}

.form-container::-webkit-scrollbar-thumb {
    background: #e0d9c0;
    border-radius: 3px;
}

.form-container::-webkit-scrollbar-thumb:hover {
    background: #2e7d32;
}

#datingSection {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.agreement-text {
    font-size: 0.8rem;
    color: #888;
    line-height: 1.4;
    text-align: left;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    border: none;
    margin: 10px 0;
}

.agreement-link {
    color: #2e7d32;
    text-decoration: none;
}

.agreement-link:hover {
    text-decoration: underline;
}

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

.tooltip-content {
    background-color: #fffdf6;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 1px solid #f0e6d2;
    max-width: 350px;
    width: 90%;
    text-align: left;
}

.tooltip-content h3 {
    color: #2e7d32;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.tooltip-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.tooltip-content li {
    margin-bottom: 8px;
    color: #5a5a5a;
    line-height: 1.4;
}

.tooltip-close {
    padding: 10px 20px;
    background-color: #2e7d32;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
    font-size: 0.9rem;
    margin-top: 10px;
}

.tooltip-close:hover {
    background-color: #388e3c;
}

.room-container {
    flex: 1;
    padding: 20px;
    background-color: #f8f5ec;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.room-image {
    width: 280px;
    height: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #e0d9c0;
    margin-bottom: 25px;
}

.room-image:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.room-image.loading {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.user-status {
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1rem;
    color: #2e7d32;
}

.search-message {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    min-height: 20px;
    transition: opacity 0.5s ease;
}

.room-error {
    color: #c62828;
    margin-top: 15px;
    font-size: 0.9rem;
}