/* 
File: Contact Form Styles - Updated to match main site theme
Location: assets/css/contact-form.css or static/css/contact-form.css
Purpose: Contact form styles that match the main site's modern design
*/

/* Contact Page Specific Styles */
.contact-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.contact-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

/* Contact Container */
.contact-container {
    position: relative;
    z-index: 1;
    padding: 6rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Contact Form Card */
.contact-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 25px 45px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4ade80, #3b82f6, #8b5cf6);
}

/* Typography */
.contact-form h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.contact-form .subtitle {
    text-align: center;
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Form Groups */
.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Form Inputs */
.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(162, 27, 27, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    position: relative;
}

.form-input:focus {
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 0 0 4px rgba(59, 130, 246, 0.1),
        0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* Textarea Specific */
.form-textarea {
    resize: vertical;
    min-height: 140px;
    font-family: inherit;
    line-height: 1.6;
}

/* Select Specific */
.form-input select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
}

/* Input States */
.input-verified {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.05);
}

.input-error {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.05);
}

.input-verifying {
    border-color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.05);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1rem;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.submit-btn:hover::before {
    left: 100%;
}

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

.submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-btn:disabled::before {
    display: none;
}

/* Status Messages */
.form-status {
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-status.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-status.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.form-status.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1));
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Email Validation */
.email-validation-info {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.email-validation-info.verifying {
    color: #d97706;
    background: rgba(245, 158, 11, 0.1);
}

.email-validation-info.verified {
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
}

.email-validation-info.error {
    color: #dc2626;
    background: rgba(239, 68, 68, 0.1);
}

/* Notice Boxes */
.email-requirements {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 197, 253, 0.1));
    color: #1e40af;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid #3b82f6;
    position: relative;
}

.email-requirements::before {
    content: '💼';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
}

.email-requirements ul {
    margin: 0.75rem 0 0 1.5rem;
    line-height: 1.7;
}

/* Loading Animations */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.75rem;
}

.verification-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #f59e0b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.verification-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 50%;
    font-size: 0.75rem;
}

.verification-icon.success {
    color: white;
    background: #10b981;
}

.verification-icon.error {
    color: white;
    background: #ef4444;
}

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

/* Floating Elements Animation */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-elements::before,
.floating-elements::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-elements::before {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-elements::after {
    bottom: 10%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-container {
        padding: 2rem 1rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .contact-form h1 {
        font-size: 2rem;
    }
    
    .form-input {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .submit-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .floating-elements::before,
    .floating-elements::after {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .contact-container {
        padding: 1rem 0.5rem;
    }
    
    .contact-form {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }
    
    .contact-form h1 {
        font-size: 1.75rem;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .contact-form {
        background: rgba(15, 23, 42, 0.95);
        color: #e2e8f0;
    }
    
    .contact-form h1 {
        background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .form-label {
        color: #cbd5e1;
    }
    
    .form-input {
        background: rgba(30, 41, 59, 0.8);
        border-color: #475569;
        color: #e2e8f0;
    }
    
    .form-input:focus {
        background: rgba(30, 41, 59, 0.95);
        border-color: #3b82f6;
    }
}/* 
File: Contact Form Styles - Updated to match main site theme
Location: assets/css/contact-form.css or static/css/contact-form.css
Purpose: Contact form styles that match the main site's modern design
*/

/* Contact Page Specific Styles */
.contact-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.contact-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

/* Contact Container */
.contact-container {
    position: relative;
    z-index: 1;
    padding: 6rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Contact Form Card */
.contact-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 25px 45px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4ade80, #3b82f6, #8b5cf6);
}

/* Typography */
.contact-form h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.contact-form .subtitle {
    text-align: center;
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Form Groups */
.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Form Inputs */
.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    position: relative;
}

.form-input:focus {
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 0 0 4px rgba(59, 130, 246, 0.1),
        0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* Textarea Specific */
.form-textarea {
    resize: vertical;
    min-height: 140px;
    font-family: inherit;
    line-height: 1.6;
}

/* Select Specific */
.form-input select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
}

/* Input States */
.input-verified {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.05);
}

.input-error {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.05);
}

.input-verifying {
    border-color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.05);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1rem;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.submit-btn:hover::before {
    left: 100%;
}

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

.submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-btn:disabled::before {
    display: none;
}

/* Status Messages */
.form-status {
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-status.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-status.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.form-status.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1));
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Email Validation */
.email-validation-info {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.email-validation-info.verifying {
    color: #d97706;
    background: rgba(245, 158, 11, 0.1);
}

.email-validation-info.verified {
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
}

.email-validation-info.error {
    color: #dc2626;
    background: rgba(239, 68, 68, 0.1);
}

/* Notice Boxes */
.email-requirements {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 197, 253, 0.1));
    color: #1e40af;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid #3b82f6;
    position: relative;
}

.email-requirements::before {
    content: '💼';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
}

.email-requirements ul {
    margin: 0.75rem 0 0 1.5rem;
    line-height: 1.7;
}

/* Loading Animations */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.75rem;
}

.verification-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #f59e0b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.verification-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 50%;
    font-size: 0.75rem;
}

.verification-icon.success {
    color: white;
    background: #10b981;
}

.verification-icon.error {
    color: white;
    background: #ef4444;
}

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

/* Floating Elements Animation */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-elements::before,
.floating-elements::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-elements::before {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-elements::after {
    bottom: 10%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-container {
        padding: 2rem 1rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .contact-form h1 {
        font-size: 2rem;
    }
    
    .form-input {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .submit-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .floating-elements::before,
    .floating-elements::after {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .contact-container {
        padding: 1rem 0.5rem;
    }
    
    .contact-form {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }
    
    .contact-form h1 {
        font-size: 1.75rem;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .contact-form {
        background: rgba(15, 23, 42, 0.95);
        color: #e2e8f0;
    }
    
    .contact-form h1 {
        background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .form-label {
        color: #cbd5e1;
    }
    
    .form-input {
        background: rgba(30, 41, 59, 0.8);
        border-color: #475569;
        color: #e2e8f0;
    }
    
    .form-input:focus {
        background: rgba(30, 41, 59, 0.95);
        border-color: #3b82f6;
    }
}