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

:root {
    --primary-color: #00a8a8;
    --bg-white: #ffffff;
    --bg-light: #f4f4f4;
    --text-dark: #333333;
    --text-medium: #666666;
    --text-light: #999999;
    --border-color: #cccccc;
    --button-color: #111111;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    font-family: var(--font-family);
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.page-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Section */
.header {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 3rem 1.5rem;
}

.domain-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.domain-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.95;
}

/* Main Container */
.main-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-description {
    color: var(--text-medium);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: 0.95rem;
    color: var(--text-dark);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-light);
}

.contact-form textarea {
    resize: vertical;
    font-family: var(--font-family);
}

.submit-btn {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--button-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-family);
    transition: background 0.2s ease;
}

.submit-btn:hover {
    background: #000000;
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 4px;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.modal-content p {
    color: var(--text-medium);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.modal-close {
    padding: 0.875rem 2.5rem;
    background: var(--button-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-family);
}

.modal-close:hover {
    background: #000000;
}

/* Responsive Design */
@media (max-width: 768px) {
    html, body {
        overflow: auto;
    }
    
    .domain-title {
        font-size: 2.5rem;
    }
    
    .domain-subtitle {
        font-size: 1.1rem;
    }
    
    .header {
        padding: 2rem 1rem;
    }
    
    .main-container {
        padding: 2rem 1rem;
    }
    
    .form-container {
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .domain-title {
        font-size: 2rem;
    }
    
    .form-title {
        font-size: 1.25rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
}

/* Selection styling */
::selection {
    background: var(--primary-color);
    color: white;
}
