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

/* Force light mode - override system dark mode preference */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 10px;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color-scheme: light; /* Force light mode */
}

.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

/* Explicit light mode styling - always override dark mode */
.form-wrapper {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 100%;
    color-scheme: light;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 25px;
}

.logo-container {
    margin-bottom: 12px;
}

.logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.header h1 {
    color: #2d3748 !important;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.header p {
    color: #718096 !important;
    font-size: 0.85rem;
    font-weight: 400;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a5568 !important;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.form-group label i {
    color: #667eea !important;
    width: 16px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #ffffff !important;
    color: #2d3748 !important;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
    background: #ffffff !important;
    color: #2d3748 !important;
}

.form-group input:valid {
    border-color: #48bb78;
}

.form-group input::placeholder {
    color: #a0aec0 !important;
}

/* Error Messages */
.error-message {
    color: #e53e3e;
    font-size: 0.75rem;
    margin-top: 3px;
    display: block;
    min-height: 12px;
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

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

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading State */
.submit-btn.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

.submit-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Success and Error Messages */
.response-message {
    padding: 16px;
    border-radius: 12px;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.success-message {
    background: #f0fff4;
    border: 2px solid #48bb78;
    color: #22543d;
}

.error-message-box {
    background: #fed7d7;
    border: 2px solid #e53e3e;
    color: #742a2a;
}

.response-message.show {
    display: block;
    animation: slideIn 0.3s ease;
}

.response-message small {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 5px;
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (min-width: 769px) {
    body {
        padding: 15px;
    }
    
    .container {
        max-width: 450px;
    }
    
    .form-wrapper {
        padding: 28px;
    }
    
    .header h1 {
        font-size: 1.7rem;
    }
    
    .header p {
        font-size: 0.9rem;
    }
    
    .logo {
        width: 55px;
        height: 55px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 12px 8px;
        display: block;
        min-height: 100vh;
    }
    
    .container {
        margin: 10px auto;
        display: flex;
        align-items: center;
        min-height: calc(100vh - 20px);
    }
    
    .form-wrapper {
        padding: 22px 16px;
        border-radius: 14px;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .logo {
        width: 48px;
        height: 48px;
    }
    
    .form-group input {
        padding: 11px 14px;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 13px 16px;
        font-size: 0.9rem;
    }
    
    .contact-form {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 8px 5px;
    }
    
    .container {
        margin: 5px auto;
        min-height: calc(100vh - 10px);
    }
    
    .form-wrapper {
        padding: 18px 14px;
        border-radius: 12px;
    }
    
    .header {
        margin-bottom: 20px;
    }
    
    .header h1 {
        font-size: 1.4rem;
    }
    
    .header p {
        font-size: 0.8rem;
    }
    
    .logo {
        width: 45px;
        height: 45px;
    }
    
    .form-group input {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .form-group label {
        font-size: 0.8rem;
    }
    
    .submit-btn {
        padding: 12px 14px;
        font-size: 0.85rem;
    }
    
    .contact-form {
        gap: 14px;
    }
}

@media (max-width: 360px) {
    .form-wrapper {
        padding: 16px 12px;
    }
    
    .header h1 {
        font-size: 1.3rem;
    }
    
    .form-group input {
        padding: 10px 11px;
        font-size: 0.8rem;
    }
    
    .submit-btn {
        padding: 11px 12px;
        font-size: 0.8rem;
    }
}

/* Ensure light mode on all devices - override any dark mode preferences */
* {
    color-scheme: light !important;
}

html {
    color-scheme: light !important;
}

/* Force light mode for form elements */
input, textarea, select {
    color-scheme: light !important;
}
