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

body {
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #3c4043;
    background-color: #ffffff;
    min-height: 100vh;
}

/* Access Request Container */
.access-request-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
}

/* Header with Google Docs Logo */
.access-header {
    padding: 24px 0 0 24px;
}

.google-docs-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.docs-icon {
    position: relative;
    width: 40px;
    height: 40px;
}

.icon-rectangle {
    width: 32px;
    height: 40px;
    background-color: #4285f4;
    border-radius: 2px;
    position: absolute;
    top: 0;
    left: 0;
}

.icon-lines {
    position: absolute;
    top: 8px;
    left: 4px;
    width: 24px;
}

.line {
    height: 2px;
    background-color: white;
    margin-bottom: 2px;
    border-radius: 1px;
}

.line:nth-child(1) { width: 20px; }
.line:nth-child(2) { width: 16px; }
.line:nth-child(3) { width: 18px; }

.docs-text {
    font-size: 22px;
    font-weight: 400;
    color: #3c4043;
}

/* Main Access Content */
.access-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.access-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Left Side - Form Section */
.access-form-section {
    max-width: 500px;
}

.access-title {
    font-size: 32px;
    font-weight: 400;
    color: #3c4043;
    margin-bottom: 16px;
    line-height: 1.2;
}

.access-description {
    font-size: 16px;
    color: #5f6368;
    margin-bottom: 32px;
    line-height: 1.6;
}

.learn-more-link {
    color: #1a73e8;
    text-decoration: none;
}

.learn-more-link:hover {
    text-decoration: underline;
}

/* Access Level Options */
.access-level-section {
    margin-bottom: 24px;
}

.access-option {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    cursor: pointer;
}

.access-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #1a73e8;
}

.access-option label {
    font-size: 16px;
    color: #3c4043;
    cursor: pointer;
    font-weight: 400;
}

/* Message Input */
.message-section {
    margin-bottom: 32px;
}

.message-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    color: #3c4043;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.message-input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

.message-input::placeholder {
    color: #9aa0a6;
}

/* Request Access Button */
.request-access-btn {
    width: 100%;
    padding: 12px 24px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
}

.request-access-btn:hover {
    background-color: #1557b0;
    box-shadow: 0 1px 3px 0 rgba(60,64,67,.3), 0 4px 8px 3px rgba(60,64,67,.15);
}

.request-access-btn:active {
    background-color: #0d47a1;
}

/* Right Side - Illustration */
.access-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.illustration-container {
    position: relative;
    width: 400px;
    height: 400px;
}

/* Abstract Shapes */
.abstract-shape {
    position: absolute;
}

.yellow-l-shape {
    width: 60px;
    height: 60px;
    background-color: #fbbc04;
    top: 20px;
    left: 20px;
    clip-path: polygon(0% 0%, 0% 100%, 30% 100%, 30% 30%, 100% 30%, 100% 0%);
}

.green-circle {
    width: 40px;
    height: 40px;
    background-color: #34a853;
    border-radius: 50%;
    top: 40px;
    right: 60px;
}

.pink-triangle {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 43px solid #f8bbd9;
    bottom: 60px;
    right: 40px;
}

/* Main Illustration */
.main-illustration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
}

.document-sheet {
    position: absolute;
    width: 160px;
    height: 200px;
    background-color: #e8f5e8;
    border-radius: 8px;
    top: 0;
    left: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.keyhole-cutout {
    position: absolute;
    width: 40px;
    height: 60px;
    background-color: #000000;
    border-radius: 20px 20px 0 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    clip-path: polygon(0% 0%, 100% 0%, 100% 60%, 50% 60%, 50% 100%, 0% 100%);
}

.person-figure {
    position: absolute;
    top: 20px;
    left: 0;
    width: 200px;
    height: 180px;
}

.person-body {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 120px;
}

.person-shirt {
    width: 80px;
    height: 60px;
    background-color: #87ceeb;
    border-radius: 8px 8px 0 0;
}

.person-pants {
    width: 80px;
    height: 60px;
    background-color: #ffffff;
    border-radius: 0 0 8px 8px;
    border: 2px solid #e0e0e0;
}

.person-hair {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 40px;
}

.hair-bun {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #ff6b6b;
    border-radius: 50%;
    top: 10px;
}

.hair-bun.left {
    left: 20px;
}

.hair-bun.right {
    right: 20px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e8eaed;
    border-top: 4px solid #1a73e8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: #5f6368;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .access-content {
        gap: 60px;
    }
    
    .illustration-container {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .access-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .access-form-section {
        max-width: 100%;
    }
    
    .access-title {
        font-size: 28px;
    }
    
    .illustration-container {
        width: 300px;
        height: 300px;
    }
    
    .main-illustration {
        width: 150px;
        height: 150px;
    }
    
    .document-sheet {
        width: 120px;
        height: 150px;
    }
    
    .person-body {
        width: 60px;
        height: 90px;
    }
    
    .person-shirt {
        width: 60px;
        height: 45px;
    }
    
    .person-pants {
        width: 60px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .access-main {
        padding: 20px 16px;
    }
    
    .access-header {
        padding: 16px 0 0 16px;
    }
    
    .access-title {
        font-size: 24px;
    }
    
    .access-description {
        font-size: 14px;
    }
    
    .message-input {
        font-size: 14px;
    }
    
    .request-access-btn {
        font-size: 14px;
    }
    
    .illustration-container {
        width: 250px;
        height: 250px;
    }
    
    .main-illustration {
        width: 120px;
        height: 120px;
    }
    
    .document-sheet {
        width: 100px;
        height: 120px;
    }
    
    .person-body {
        width: 50px;
        height: 75px;
    }
    
    .person-shirt {
        width: 50px;
        height: 37px;
    }
    
    .person-pants {
        width: 50px;
        height: 37px;
    }
}