/* Forms Styles - Contact + New Term */

/* Contact Page */
.contact-page-main {
    background-color: #000000;
    min-height: 100vh;
    padding-top: 60px;
    padding-bottom: 80px;
    position: relative;
    background: 
        radial-gradient(circle at 20% 20%, rgba(156, 238, 105, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(16, 17, 20, 0.08) 0%, transparent 50%),
        #000000;
}

.contact-page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-title {
    font-family: 'Quinn', sans-serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: #9cee69;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contact Layout */
.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Contact Form */
.contact-form-container {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
}

.contact-form {
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    font-family: 'Manrope', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #9cee69;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(156, 238, 105, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group select {
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Character Counter */
.character-count {
    text-align: right;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
}

/* Checkbox Styling */
.checkbox-group {
    position: relative;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 15px !important;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    width: 100% !important;
}

.checkbox-label input[type="checkbox"] {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.checkmark {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0 !important;
    margin: 0;
    margin-right: 10px;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #9cee69;
    border-color: #9cee69;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000000;
    font-size: 14px !important;
    font-weight: bold;
    line-height: 1 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.checkbox-label-text {
    flex: 1 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.5;
}

.checkbox-label a {
    color: #9cee69;
    text-decoration: none;
    transition: color 0.3s ease;
}

.checkbox-label a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #9cee69, #7dd945);
    border: none;
    border-radius: 50px;
    color: #000000;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(156, 238, 105, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(156, 238, 105, 0.4);
    background: linear-gradient(135deg, #7dd945, #6bc729);
}

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

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-top: 2px solid #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

/* Contact Info Sidebar */
.contact-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
}

.contact-info-card h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.contact-info-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-item strong {
    color: #ffffff;
    font-size: 14px;
}

.contact-item span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    background: rgba(156, 238, 105, 0.1);
    border-color: #9cee69;
    transform: translateY(-2px);
}

.action-emoji {
    font-size: 24px;
    flex-shrink: 0;
}

.action-text strong {
    color: #ffffff;
    font-size: 16px;
    display: block;
    margin-bottom: 2px;
}

.action-text small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

/* New Term Page */
.new-term-page-main {
    background-color: #000000;
    min-height: 100vh;
    padding-top: 60px;
    padding-bottom: 80px;
    position: relative;
    background: 
        radial-gradient(circle at 20% 20%, rgba(156, 238, 105, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(16, 17, 20, 0.08) 0%, transparent 50%),
        #000000;
}

.new-term-page-header {
    text-align: center;
    margin-bottom: 50px;
}

/* Form Layout */
.new-term-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    max-width: 1300px;
    margin: 0 auto;
}

/* Form Container */
.new-term-form-container {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
}

.form-header {
    margin-bottom: 40px;
    text-align: center;
}

.form-header h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h4 {
    color: #9cee69;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Form Elements */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.field-help {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-top: 5px;
    font-style: italic;
}

.btn-icon {
    margin-right: 8px;
}

/* Info Sidebar */
.new-term-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
}

.info-card h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Guidelines */
.guidelines-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.guideline-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.guideline-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.guideline-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.5;
}

.guideline-text strong {
    color: #ffffff;
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.step-number {
    background: #9cee69;
    color: #000000;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.step-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.5;
    margin-top: 3px;
}

/* Popular Categories */
.popular-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-tag {
    background: rgba(156, 238, 105, 0.1);
    border: 1px solid rgba(156, 238, 105, 0.3);
    color: #9cee69;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.category-tag:hover {
    background: rgba(156, 238, 105, 0.2);
    border-color: #9cee69;
    color: #ffffff;
    transform: translateY(-1px);
    text-decoration: none;
}

.category-tag.category-all {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

.category-tag.category-all:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    color: #ffffff;
}

/* Success/Error Messages */
.form-message {
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    font-weight: 600;
    text-align: center;
}

.form-message.success {
    background: rgba(156, 238, 105, 0.1);
    border: 1px solid rgba(156, 238, 105, 0.3);
    color: #9cee69;
}

.form-message.error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

/* Field Error Styling */
.field-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.3) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Forms Mobile Styles */
    .contact-page-main,
    .new-term-page-main {
        padding-top: 30px;
        padding-bottom: 50px;
    }
    
    .contact-page-header,
    .new-term-page-header {
        margin-bottom: 40px;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .contact-layout,
    .new-term-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form-container,
    .new-term-form-container {
        padding: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .submit-btn {
        padding: 15px 25px;
    }
    
    .info-card,
    .contact-info-card {
        padding: 20px;
    }
    
    .form-section {
        margin-bottom: 30px;
        padding-bottom: 25px;
    }
}

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