/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #f7fafc;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.main-content {
    min-height: 100vh;
    padding: 2rem 0;
}

.container {
    max-width: calc(100vw - 60px);
    margin: 0 30px;
    padding: 0 1rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 3rem;
}

/* Contact Form Section */
.contact-form-section {
    width: 100%;
}

.contact-form-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.contact-form-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.contact-form-header p {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: white;
    color: #2d3748;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder {
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Textarea Styles */
.form-group textarea {
    min-height: 120px;
    max-height: 200px;
    resize: none;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: white;
    color: #2d3748;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;

}

.form-group textarea:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea::placeholder {
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.btn-cancel,
.btn-submit {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-cancel {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.btn-cancel:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.btn-submit {
    background: #3B82F6;
    color: white;
    border: 1px solid #3B82F6;
}

.btn-submit:hover {
    background: #2563eb;
    border-color: #2563eb;
}

/* Contact Information Section */
.contact-info-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.contact-info-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7fafc;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-icon .icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.contact-details h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.5;
}

.office-hours {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.office-hours h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.75rem;
}

.office-hours p {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

/* Logo Section */
.logo-section {
    margin-top: 2rem;
    text-align: center;
}

.ssr-logo {
    max-width: 150px;
    height: auto;
    object-fit: contain;
}

/* Technical Support Section */
.tech-support-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    border: 1px solid #e2e8f0;
}

.tech-support-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.tech-support-content p {
    color: #718096;
    font-size: 0.9rem;
}

/* Tech Support Buttons Container */
.tech-support-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Base button styles for both buttons and links */
.ticket-btn,
.view-tickets-btn,
.btn-raise-ticket,
.btn-view-tickets,
.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-block;
    text-align: center;
}

/* Primary button styling (Raise a Ticket) */
.ticket-btn,
.btn-raise-ticket,
.btn-primary {
    background: #3B82F6;
    color: white;
}

.ticket-btn:hover,
.btn-raise-ticket:hover,
.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3);
    color: white;
}

/* Secondary button styling (View Tickets) */
.view-tickets-btn,
.btn-view-tickets,
.btn-secondary {
    background: #22C55E;
    color: white;
}

.view-tickets-btn:hover,
.btn-view-tickets:hover,
.btn-secondary:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(16, 185, 129, 0.3);
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        margin: 0 20px;
        max-width: calc(100vw - 40px);
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info-section {
        position: static;
        order: 2;
    }
    
    .contact-form-section {
        order: 1;
    }
}

@media (max-width: 768px) {
    .container {
        margin: 0 15px;
        max-width: calc(100vw - 30px);
    }
    
    .main-content {
        padding: 1rem 0;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .contact-form-card,
    .contact-info-section {
        padding: 1.5rem;
    }
    
    .contact-form-header h1 {
        font-size: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-cancel,
    .btn-submit {
        width: 100%;
        justify-content: center;
    }
    
    .contact-item {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .contact-icon {
        align-self: center;
    }
    
    .tech-support-section {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.5rem;
    }
    
    .tech-support-content h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 0 10px;
        max-width: calc(100vw - 20px);
    }
    
    .contact-form-card,
    .contact-info-section,
    .tech-support-section {
        padding: 1rem;
    }
    
    .ssr-logo {
        max-width: 120px;
    }
}

/* Focus and Accessibility */
*:focus {
    outline: none;
}

button:focus,
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Form Validation States */
.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
    border-color: #f56565;
}

.form-group input:valid,
.form-group select:valid,
.form-group textarea:valid {
    border-color: #48bb78;
}

/* Loading States */
.btn-submit:disabled {
    background: #a0aec0;
    cursor: not-allowed;
}

/* Smooth Animations */
* {
    transition: all 0.2s ease;
}

/* Print Styles */
@media print {
    .main-content {
        background: white;
    }
    
    .contact-form-card,
    .contact-info-section,
    .tech-support-section {
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
}