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

:root {
    --primary-color: #6596bd;
    --dark-color: #000000;
    --light-color: #ffffff;
    --text-dark: #333333;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--light-color);
    color: var(--text-dark);
    overflow: hidden;
}

.container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--light-color) 0%, #f5f5f5 100%);
}

/* Header */
.header {
    padding: 20px;
    text-align: center;
    background-color: var(--dark-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo {
    max-height: 50px;
    width: auto;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    text-align: center;
}

.main-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Action Buttons */
.actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 400px;
}

.action-btn {
    width: 120px;
    height: 120px;
    padding: 0;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--light-color);
    box-shadow: 0 4px 12px rgba(101, 150, 189, 0.2);
    margin: 0 auto;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(101, 150, 189, 0.3);
}

.action-btn:active {
    transform: translateY(-1px);
}

.action-btn .icon {
    width: 50px;
    height: 50px;
    stroke: currentColor;
    flex-shrink: 0;
}

.action-btn .label {
    text-align: center;
    width: 100%;
    word-wrap: break-word;
}

.valuation-btn, .meeting-btn, .game-btn {
    background-color: var(--primary-color);
}

.valuation-btn:hover, .meeting-btn:hover, .game-btn:hover {
    background-color: #5280a8;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: var(--light-color);
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-dark);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.close-btn:hover {
    background-color: #f0f0f0;
}

/* Forms */
.form-section {
    display: none;
}

.form-section.active {
    display: block;
}

.form-section h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--dark-color);
}

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

input, textarea, label {
    font-size: 1rem;
    font-family: inherit;
}

input, textarea, select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.2s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(101, 150, 189, 0.1);
}

select {
    font-size: 1rem;
    font-family: inherit;
}

label {
    font-weight: 500;
    color: var(--text-dark);
    margin-top: 5px;
}

.submit-btn {
    padding: 14px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #5280a8;
}

.submit-btn:active {
    transform: scale(0.98);
}

.success-message {
    display: none;
    padding: 15px;
    background-color: #e8f5e9;
    color: #2e7d32;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}

.success-message.show {
    display: block;
}

/* Valuation Result */
.valuation-result {
    display: none;
    text-align: center;
}

.valuation-result.show {
    display: block;
}

.valuation-result h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.valuation-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.valuation-disclosure {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.secondary-btn {
    background-color: #999;
    margin-top: 10px;
}

.secondary-btn:hover {
    background-color: #777;
}

/* Game Section */
.game-container {
    text-align: center;
}

.game-instructions {
    font-size: 1rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
    text-align: left;
}

.game-highlight {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    color: var(--primary-color);
}

.guess-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.guess-subtext {
    font-size: 0.85rem;
    color: #999;
    text-align: left;
    margin: 0;
}

.game-success-message {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    line-height: 1.6;
    font-weight: 500;
}

#game-form-wrapper.hidden,
#game-success-wrapper.hidden {
    display: none;
}

#game-form-wrapper,
#game-success-wrapper {
    display: block;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .main-content h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .action-btn {
        width: 110px;
        height: 110px;
        font-size: 0.85rem;
    }

    .action-btn .icon {
        width: 45px;
        height: 45px;
    }

    .modal-content {
        padding: 20px;
    }

    .form-section h2 {
        font-size: 1.5rem;
    }

    .header {
        padding: 15px;
    }

    .logo {
        max-height: 40px;
    }
}

@media (max-width: 320px) {
    .main-content h1 {
        font-size: 1.6rem;
    }

    .action-btn {
        width: 100px;
        height: 100px;
        font-size: 0.8rem;
        gap: 6px;
    }

    .action-btn .icon {
        width: 40px;
        height: 40px;
    }
}
