/* ==================================================
   Static Page Styles (Terms of Service, Privacy Policy, etc.)
   ================================================== */

/* --- Base & Typography --- */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8fafc;
    color: #374151;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Container --- */
.static-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 15px;
}

/* --- Header --- */
.static-header {
    text-align: left;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.static-title {
    font-size: 36px;
    font-weight: 700;
    color: #17a2b8; /* Already correct, but confirming */
    margin-bottom: 8px;
}

.static-subtitle {
    font-size: 16px;
    color: #6b7280;
}

/* --- Content Area --- */
.static-content {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.static-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.static-content h2:first-of-type {
    margin-top: 0;
}

.static-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-top: 25px;
    margin-bottom: 10px;
}

.static-content p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #4b5563;
}

.static-content ul {
    list-style-type: disc;
    padding-left: 25px;
    margin-bottom: 15px;
}

.static-content li {
    margin-bottom: 8px;
}

.static-content a {
    color: #17a2b8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.static-content a:hover {
    color: #138496;
    text-decoration: underline;
}

/* --- Contact Page Specifics --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1.2fr;
        gap: 60px;
    }
}

.contact-info h3, .contact-form h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background-color: #e0f2fe;
    color: #17a2b8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.contact-info-content strong {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 2px;
}

.contact-info-content span {
    color: #6b7280;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
    font-size: 15px;
}

.contact-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.contact-form .form-control:focus {
    border-color: #17a2b8;
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.1);
    outline: none;
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-form .form-submit-btn {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #17a2b8; /* Already correct, but confirming */
    color: white;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-form .form-submit-btn:hover {
    background: #138496; /* Already correct, but confirming */
    transform: translateY(-2px);
}

/* --- Advanced Form Styles (for Terms page) --- */
.contact-form.advanced-form {
    max-width: 700px;
    margin: 20px auto 0 auto;
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.advanced-form .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

.advanced-form .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 20px; /* Add margin for spacing when stacked */
}

.advanced-form .col-md-6:last-child {
    margin-bottom: 0;
}

.advanced-form .form-group.icon-inside {
    position: relative;
}

.advanced-form .form-group.icon-inside .form-control {
    padding-left: 40px;
}

.advanced-form .form-group.icon-inside i {
    position: absolute;
    left: 15px;
    top: calc(100% - 22.5px); /* Position relative to the input's center */
    transform: translateY(-50%); /* Center the icon vertically */
    color: #9ca3af;
}
.advanced-form .form-group.icon-inside textarea + i {
    top: 18px; /* Special adjustment for textarea top */
    transform: none; /* Keep textarea icon at top */
}

@media (min-width: 768px) {
    .advanced-form .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 0;
    }
}

/* --- Footer Link --- */
.back-link-container {
    text-align: center;
    margin-top: 40px;
}

.back-link {
    display: inline-block;
    padding: 12px 25px;
    background-color: #17a2b8; /* Already correct, but confirming */
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-link:hover {
    background-color: #138496; /* Already correct, but confirming */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .static-title {
        font-size: 28px;
    }
    .static-content {
        padding: 25px;
    }
}

/*
=================================================================
 Terms & Conditions Page Specific Styles
=================================================================
*/
.terms-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
.terms-nav {
    position: sticky;
    top: 40px;
    align-self: start;
}
.terms-nav h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1f2937;
}
.terms-nav ul {
    list-style: none;
    padding: 0;
}
.terms-nav li a {
    display: block;
    padding: 10px 15px;
    border-radius: 6px;
    color: #4b5563;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}
.terms-nav li a:hover { background-color: #f1f5f9; color: #17a2b8; }
.terms-nav li a.active { color: #17a2b8; background-color: #e0f2fe; border-left-color: #17a2b8; }
.terms-content-section { padding-top: 20px; }
@media (min-width: 992px) { .terms-layout { grid-template-columns: 280px 1fr; } }