/* Service Pages - Unified Styling */

:root {
    --primary-gradient: linear-gradient(135deg, #ff6700 0%, #ff8c00 100%);
    --secondary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-color: #ff6700;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-light: #f0f0f0;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="dark"] {
    --text-primary: #f0f0f0;
    --text-secondary: #999;
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --card-bg: #252525;
    --border-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition);
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: calc(100vh - 200px);
}

/* Section Hero */
.service-hero {
    background: var(--primary-gradient);
    color: white;
    padding: 60px 20px;
    border-radius: 16px;
    margin-bottom: 40px;
    text-align: center;
    overflow: visible;
}

.service-hero h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: 800;
}

.service-hero p {
    font-size: 1.1em;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.service-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    overflow: visible;
    height: auto;
    min-height: auto;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.service-card i {
    font-size: 2.5em;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: block;
}

.service-card h3 {
    font-size: 1.3em;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.service-card p {
    font-size: 0.95em;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.service-card a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}

.service-card a:hover {
    text-decoration: underline;
}

/* Section Title */
.section-title {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: '';
    width: 5px;
    height: 35px;
    background: var(--primary-gradient);
    border-radius: 3px;
}

/* Content Sections */
.content-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: visible;
}

.content-section h2 {
    font-size: 1.6em;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.content-section h3 {
    font-size: 1.3em;
    margin: 25px 0 15px 0;
    color: var(--text-primary);
}

.content-section p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 1em;
}

.content-section ul,
.content-section ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.content-section li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.content-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.content-section th {
    background: var(--accent-color);
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.content-section td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.content-section tr:hover {
    background: var(--bg-secondary);
}

/* Highlight Boxes */
.highlight-box {
    background: linear-gradient(135deg, rgba(255, 103, 0, 0.05), rgba(255, 140, 0, 0.05));
    border-left: 4px solid var(--accent-color);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    overflow: visible;
}

.highlight-box strong {
    color: var(--accent-color);
}

/* FAQ Accordion */
.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: visible;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 10px 10px 0 0;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.faq-item.active .faq-question {
    background: var(--primary-gradient);
    color: white;
    border-radius: 10px;
}

.faq-question:hover {
    background: var(--accent-color);
    color: white;
}

.faq-question h4 {
    margin: 0;
    font-size: 1.05em;
    font-weight: 600;
}

.faq-toggle {
    transition: transform 0.3s;
    font-size: 1.2em;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--card-bg);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Form Container */
.form-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    overflow: visible;
}

.form-container h2 {
    color: var(--text-primary);
    margin-bottom: 25px;
    font-size: 1.6em;
}

/* Form Elements */
.form-group {
    margin-bottom: 24px;
    overflow: visible;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 1em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1em;
    font-family: inherit;
    transition: var(--transition);
    overflow: visible;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--card-bg);
    box-shadow: 0 0 0 3px rgba(255, 103, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-help {
    font-size: 0.85em;
    color: var(--text-secondary);
    margin-top: 8px;
    font-style: italic;
}

.required {
    color: #ff4757;
}

/* Form Row Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    overflow: visible;
}

.form-row .form-group {
    margin-bottom: 0;
    overflow: visible;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 12px;
    overflow: visible;
    align-items: center;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    overflow: visible;
}

.radio-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.radio-option input[type="radio"]:hover {
    border-color: var(--accent-color);
}

.radio-option input[type="radio"]:checked {
    background: var(--primary-gradient);
    border-color: var(--accent-color);
    box-shadow: inset 0 0 0 4px var(--card-bg);
}

.radio-option label {
    margin: 0;
    font-weight: 500;
    cursor: pointer;
    flex-shrink: 0;
}

/* Checkbox Styling */
.checkbox-group {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.checkbox-option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    position: relative;
}

.checkbox-option input[type="checkbox"]:hover {
    border-color: var(--accent-color);
}

.checkbox-option input[type="checkbox"]:checked {
    background: var(--primary-gradient);
    border-color: var(--accent-color);
}

.checkbox-option input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-option label {
    margin: 0;
    font-weight: 500;
    cursor: pointer;
    flex-shrink: 0;
}

/* Button Group */
.button-group {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
    overflow: visible;
}

.btn-submit,
.btn-reset {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.btn-submit {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-reset {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.btn-reset:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Info Boxes */
.info-box {
    background: rgba(255, 103, 0, 0.05);
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    overflow: visible;
    border: 1px solid rgba(255, 103, 0, 0.1);
}

.info-box h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px 0;
}

.info-box i {
    font-size: 1.1em;
}

.info-box p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95em;
    line-height: 1.6;
}

/* Success/Error Messages */
.success-message,
.error-message {
    padding: 18px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 15px;
    animation: slideInDown 0.3s ease-out;
    overflow: visible;
}

.success-message.show,
.error-message.show {
    display: flex;
}

.success-message {
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid #4CAF50;
    color: #4CAF50;
}

.error-message {
    background: rgba(255, 71, 87, 0.1);
    border: 2px solid #ff4757;
    color: #ff4757;
}

.success-message i,
.error-message i {
    font-size: 1.3em;
    flex-shrink: 0;
}

/* FAQ Container */
.faq-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    margin-top: 60px;
    overflow: visible;
}

.faq-container h2 {
    color: var(--text-primary);
    margin-bottom: 30px;
    font-size: 1.8em;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border-radius: 8px;
    border: none;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary-gradient);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: white;
}

/* Tabs */
.tabs-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    overflow-x: auto;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 14px 24px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    color: var(--accent-color);
    background: rgba(255, 103, 0, 0.05);
}

.tab-btn.active {
    color: white;
    background: var(--primary-gradient);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-out;
    overflow: visible;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Contact Cards */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.contact-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: visible;
    height: auto;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.contact-card i {
    font-size: 2.8em;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.contact-card a {
    display: block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    margin: 10px 0;
    word-break: break-all;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 0.9em;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    transform: translateY(-4px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-container {
        padding: 30px 15px;
    }

    .service-hero {
        padding: 40px 20px;
    }

    .service-hero h1 {
        font-size: 2em;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 25px 15px;
    }

    .service-hero {
        padding: 35px 15px;
        border-radius: 10px;
    }

    .service-hero h1 {
        font-size: 1.6em;
    }

    .service-hero p {
        font-size: 1em;
    }

    .section-title {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .form-container {
        padding: 24px;
    }

    .faq-container {
        padding: 24px;
    }

    .button-group {
        flex-direction: column;
    }

    .btn-submit,
    .btn-reset {
        width: 100%;
        justify-content: center;
    }

    .tabs-nav {
        margin-bottom: 20px;
    }

    .tab-btn {
        padding: 10px 14px;
        font-size: 0.88em;
    }

    .radio-group {
        gap: 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    .checkbox-group {
        gap: 16px;
        flex-direction: column;
        align-items: flex-start;
    }
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .service-card {
        padding: 25px;
    }

    .content-section {
        padding: 25px;
        margin-bottom: 20px;
    }

    .content-section h2 {
        font-size: 1.4em;
    }

    .content-section h3 {
        font-size: 1.15em;
    }

    .contact-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contact-card {
        padding: 25px;
    }

    .tabs-nav {
        gap: 8px;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 0.95em;
    }

    .faq-question {
        padding: 15px;
    }

    .faq-question h4 {
        font-size: 0.95em;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px;
        font-size: 16px;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 640px) {
    .main-container {
        padding: 20px 12px;
    }

    .service-hero {
        padding: 30px 12px;
        margin-bottom: 25px;
    }

    .service-hero h1 {
        font-size: 1.4em;
        margin-bottom: 10px;
    }

    .service-hero p {
        font-size: 0.95em;
    }

    .section-title {
        font-size: 1.3em;
        gap: 8px;
    }

    .form-container {
        padding: 20px;
    }

    .faq-container {
        padding: 20px;
    }

    .form-group label {
        font-size: 0.95em;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px;
        font-size: 16px;
    }

    .button-group {
        gap: 12px;
    }

    .btn-submit,
    .btn-reset {
        padding: 12px 24px;
        font-size: 0.95em;
    }

    .radio-option label,
    .checkbox-option label {
        font-size: 0.95em;
    }

    .info-box {
        padding: 15px;
        margin-bottom: 20px;
    }

    .info-box h4 {
        font-size: 0.95em;
    }

    .info-box p {
        font-size: 0.9em;
    }

    .contact-cards {
        gap: 12px;
    }

    .contact-card {
        padding: 20px;
    }

    .contact-card i {
        font-size: 2.2em;
    }

    .contact-card h3 {
        font-size: 1.05em;
    }

    .contact-card a {
        font-size: 0.9em;
    }

    .tabs-nav {
        gap: 6px;
    }

    .tab-btn {
        padding: 10px 12px;
        font-size: 0.85em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.95em;
    }

    .form-group label {
        font-size: 0.95em;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px;
        font-size: 16px;
        border-radius: 6px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 15px 10px;
    }

    .service-hero h1 {
        font-size: 1.2em;
    }

    .section-title {
        font-size: 1.15em;
    }

    .service-card {
        padding: 15px;
    }

    .content-section {
        padding: 15px;
    }

    .contact-card {
        padding: 15px;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px;
    }
}
