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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #fafafa;
    color: #2c2c2c;
    line-height: 1.6;
}

.container {
    display: flex;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
}

/* Left Panel - Napkin Logo */
.left-panel {
    flex: 1;
    background: linear-gradient(135deg, #f5f5f0 0%, #e8e4d9 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.napkin-logo {
    margin-bottom: 2rem;
}

.logo-svg {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.logo-svg:hover {
    transform: scale(1.05);
}

.main-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 1rem;
    text-align: center;
}

.tagline {
    font-size: 1.1rem;
    color: #6b6b6b;
    text-align: center;
    max-width: 300px;
}

/* Right Panel - Contract Selection */
.right-panel {
    flex: 1.5;
    padding: 3rem;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contract-selection h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #6b6b6b;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

/* Contract Buttons - Spacebar Style */
.contract-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contract-btn {
    background: #f8f6f0;
    border: 2px solid #d4c4a8;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contract-btn:hover {
    background: #e8e4d9;
    border-color: #b8a890;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.contract-btn:active {
    transform: translateY(0);
}

.btn-text {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 0.25rem;
}

.btn-desc {
    display: block;
    font-size: 0.9rem;
    color: #6b6b6b;
}

/* Form Styles */
.contract-form, .contract-preview {
    width: 100%;
}

.form-header, .preview-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.back-btn {
    background: none;
    border: none;
    color: #8b7355;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background 0.3s ease;
    margin-right: 1rem;
}

.back-btn:hover {
    background: #f8f6f0;
}

.form-header h3, .preview-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c2c2c;
}

.form-fields {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

.form-group label {
    font-weight: 500;
    color: #2c2c2c;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid #e0d8c8;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b7355;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.preview-btn {
    background: #8b7355;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.preview-btn:hover {
    background: #7a6347;
}

/* Preview Styles */
.preview-content {
    background: #f8f6f0;
    border: 1px solid #d4c4a8;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    max-height: 400px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.6;
}

.signature-section {
    margin-bottom: 2rem;
}

.signature-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 0.5rem;
}

.signature-note {
    font-size: 0.9rem;
    color: #6b6b6b;
    margin-bottom: 1rem;
    font-style: italic;
}

.signature-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.signature-input {
    padding: 0.75rem 1rem;
    border: 2px solid #e0d8c8;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

.preview-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.download-btn, .share-btn {
    padding: 1rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.download-btn {
    background: #8b7355;
    color: white;
}

.download-btn:hover {
    background: #7a6347;
}

.share-btn {
    background: white;
    color: #8b7355;
    border: 2px solid #8b7355;
}

.share-btn:hover {
    background: #8b7355;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .left-panel {
        padding: 1.5rem;
        min-height: 300px;
    }
    
    .right-panel {
        padding: 2rem;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .logo-svg {
        width: 100px;
        height: 100px;
    }
    
    .signature-inputs {
        grid-template-columns: 1fr;
    }
    
    .preview-actions {
        flex-direction: column;
    }
}

/* Disclaimer Tab */
.disclaimer-tab {
    position: fixed;
    bottom: 0;
    right: 20px;
    background: #8b7355;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background 0.3s ease;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.disclaimer-tab:hover {
    background: #7a6347;
}

/* Disclaimer Modal */
.disclaimer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.disclaimer-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    margin: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.disclaimer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e0d8c8;
}

.disclaimer-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b6b6b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: #f8f6f0;
}

.disclaimer-body {
    padding: 2rem;
}

.disclaimer-body h4 {
    color: #8b7355;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem 0;
}

.disclaimer-body h4:first-child {
    margin-top: 0;
}

.disclaimer-body p {
    color: #2c2c2c;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.disclaimer-body strong {
    color: #8b7355;
} 