/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 150px; /* Account for fixed navbar */
}

/* Common floating container for all pages */
.page-container {
    width: calc(100% - 40px);
    min-height: calc(100vh - 195px);
    margin: 20px auto;
    background-color: #D9634A; /* Unified page background */
    border-radius: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    max-width: calc(100vw - 40px);
    border: 3px solid #B94433;
}

/* Unified text colors for readability on dark warm background */
.page-content h1,
.page-content h2,
.page-content h3 {
    color: #ffffff !important;
}

.page-content p,
.page-content label,
.page-content small {
    color: #FFE1C2 !important;
}

/* Section containers for scrolling */
.section-container {
    scroll-margin-top: 150px;
}

/* Home section background */
#home {
    background-image: url('/assets/images/indexhero1.svg');
    background-size: 105%; /* 5% zoom */
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Home section text colors */
#home .homeheader,
#home .homecontent,
#home h2,
#home h3,
#home p {
    color: white !important;
}

/* Home section button */
#home .homecontentnav {
    color: white !important;
    border: 2px solid white !important;
}

#home .homecontentnav:hover {
    background-color: white !important;
    color: #dd0802 !important;
    border: 2px solid white !important;
}

/* Services Section Styling */
.services-section {
    background-color: #D9634A !important;
}

.contact-page {
    background-color: #D9634A;
    border: 3px solid #B94433;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.contact-content h1 {
    color: #ffffff;
}

.contact-content p {
    color: #ffe1c2;
    max-width: 520px;
    margin: 0 auto 1.5rem auto;
}

.contact-form {
    margin: 1.5rem auto 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    max-width: 680px;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.contact-field label {
    color: #FFE1C2;
    font-weight: 600;
}

.contact-field input,
.contact-field textarea {
    width: 70%;
    min-width: 260px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 6px;
    padding: 0.8rem 1rem;
    font-size: 1rem;
}

.contact-submit {
    display: block;
    margin: 0.5rem auto 1.5rem auto;
    background-color: #F5C842;
    color: #7a280e;
    border: none;
    border-radius: 6px;
    padding: 0.6rem 1.4rem;
    font-weight: 600;
    cursor: pointer;
}

.contact-submit:hover {
    background-color: #E0B430;
}

.contact-back-link {
    background-color: #F5C842;
    color: #7a280e;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.contact-back-link:hover {
    background-color: #E0B430;
    color: #60210b;
}

.services-title {
    color: white !important;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-box {
    background-color: #D2912C;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 3px solid #C78424;
}

.service-header {
    background-color: #8B4726;
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    width: 100%;
}

.service-description {
    color: white;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-button {
    background-color: #8B4726;
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-button:hover {
    background-color: #6D3620;
    transform: translateY(-2px);
}

.back-to-home-btn {
    display: inline-block;
    background-color: #F5C842;
    color: #333;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.back-to-home-btn:hover {
    background-color: #E0B430;
    transform: translateY(-2px);
}

/* Responsive design for services grid */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Pricing table styling */
.pricing-page {
    background-color: #D9634A;
}

.pricing-intro {
    color: #7a0c0c;
    margin-bottom: 2rem;
}

.pricing-table-wrapper {
    overflow-x: auto;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff5f5;
    box-shadow: 0 8px 20px rgba(125, 10, 10, 0.2);
}

.pricing-table th,
.pricing-table td {
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(221, 8, 2, 0.2);
    font-size: 0.95rem;
}

.pricing-table thead th {
    background-color: #dd0802;
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1;
}

.pricing-table tbody tr:nth-child(odd) {
    background-color: rgba(221, 8, 2, 0.08);
}

.pricing-table tbody tr:hover {
    background-color: rgba(221, 8, 2, 0.18);
}

.pricing-table td:first-child,
.pricing-table th:first-child {
    text-align: left;
}

@media (max-width: 1024px) {
    .pricing-table th,
    .pricing-table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .pricing-intro {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .pricing-table th,
    .pricing-table td {
        padding: 0.6rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .pricing-table-wrapper {
        margin: 0 -1rem;
    }

    .pricing-page .page-content {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 640px) {
    .pricing-table thead {
        display: none;
    }

    .pricing-table tbody {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .pricing-table tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem 1rem;
        padding: 1rem;
        background-color: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(221, 8, 2, 0.2);
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(125, 10, 10, 0.15);
    }

    .pricing-table td {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        white-space: normal;
        padding: 0;
    }

    .pricing-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #dd0802;
        margin-bottom: 0.25rem;
    }
}

/* Upload page styles */
.upload-page {
    background-color: #D9634A;
}

.upload-instructions {
    color: #7a0c0c;
    margin-bottom: 2rem;
}

.upload-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.upload-main {
    width: 100%;
    max-width: 900px;
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
    justify-content: center;
}

.upload-form .form-field {
    width: 100%;
    max-width: 600px;
    text-align: left;
}

.upload-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 0 0 260px;
}

.upload-form select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(221, 8, 2, 0.3);
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.95);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.upload-form select:focus {
    outline: none;
    border-color: #dd0802;
    box-shadow: 0 0 0 4px rgba(221, 8, 2, 0.15);
}

.upload-form input[type="text"],
.upload-form input[type="number"] {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(221, 8, 2, 0.3);
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.95);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.upload-form input[type="text"]:focus,
.upload-form input[type="number"]:focus {
    outline: none;
    border-color: #dd0802;
    box-shadow: 0 0 0 4px rgba(221, 8, 2, 0.15);
}

.upload-side .form-field label {
    font-weight: 600;
    color: #7a0c0c;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.range-inputs input {
    flex: 1;
    text-align: center;
}

.range-separator {
    font-weight: 600;
    color: #7a0c0c;
}

.page-range-field {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.page-range-field select {
    margin-bottom: 0.2rem;
}

.range-hint {
    font-size: 0.85rem;
    color: #a34242;
}

.ink-options,
.duplex-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ink-label,
.duplex-label {
    font-weight: 600;
    color: #7a0c0c;
}

.ink-options label,
.duplex-options label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: #7a0c0c;
}

.ink-options .radio-row,
.duplex-options .radio-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.ink-options input[type="radio"],
.duplex-options input[type="radio"] {
    accent-color: #dd0802;
}

@media (max-width: 1024px) {
    .upload-main {
        flex-direction: column;
        align-items: center;
    }

    .upload-dropzone,
    .upload-side,
    .upload-form .form-field {
        max-width: 100%;
    }

    .upload-side {
        width: 100%;
    }

    .upload-form {
        gap: 1.25rem;
    }
}

@media (max-width: 640px) {
    .radio-row {
        justify-content: flex-start;
        gap: 1rem;
    }

    .upload-dropzone {
        padding: 2.5rem 1.5rem;
    }

    .pricing-table-wrapper {
        margin: 0 -0.5rem;
    }
}

.upload-dropzone {
    width: 100%;
    max-width: 600px;
    border: 2px dashed rgba(221, 8, 2, 0.5);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.upload-dropzone:hover {
    border-color: #dd0802;
    box-shadow: 0 8px 20px rgba(221, 8, 2, 0.2);
    transform: translateY(-2px);
}

.file-input-hidden {
    display: none;
}

.dropzone-icon {
    font-size: 2.5rem;
    color: #dd0802;
}

.dropzone-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #7a0c0c;
}

.dropzone-hint {
    font-size: 0.95rem;
    color: #a34242;
}

.upload-form input[type="file"] {
    display: none;
}

.upload-summary {
    background-color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(221, 8, 2, 0.2);
    padding: 1.2rem;
    width: 100%;
    max-width: 600px;
    border-radius: 0;
}

.upload-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.upload-summary li {
    font-size: 0.95rem;
    color: #000000;
}

.upload-summary p {
    margin: 0;
    color: #7a0c0c;
}

.upload-note {
    font-size: 0.9rem;
    color: #a34242;
    margin-top: 0.5rem;
}

.upload-submit {
    padding: 0.75rem 2.5rem;
    background-color: #dd0802;
    color: white;
    border: none;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-submit:hover {
    background-color: #b30702;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(221, 8, 2, 0.25);
}

.upload-submit:disabled,
.modal-primary:disabled,
.modal-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.upload-alert {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
}

.upload-alert.error {
    background-color: #ffe4e1;
    border: 1px solid #dd0802;
    color: #a00a06;
}

.upload-alert.success {
    background-color: #e7f8ec;
    border: 1px solid #2e7d32;
    color: #205722;
}

/* Modal styles */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 1.5rem;
}

.modal-dialog {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
    max-width: 420px;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background-color: #dd0802;
    color: white;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-body p {
    margin: 0;
    color: #7a0c0c;
    font-size: 0.95rem;
}

.modal-body .form-field input {
    width: 100%;
}

.modal-footer {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background-color: #f6f6f6;
}

.modal-primary,
.modal-secondary {
    padding: 0.6rem 1.4rem;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-primary {
    background-color: #dd0802;
    color: white;
}

.modal-primary:hover {
    background-color: #b30702;
}

.modal-secondary {
    background-color: #e0e0e0;
    color: #333;
}

.modal-secondary:hover {
    background-color: #cfcfcf;
}

/* Login page styles */
.login-page {
    background-color: #D9634A !important;
}

/* Form-specific readability fixes on dark background */
.page-content .form-options { color: #FFE1C2 !important; }
.page-content .remember-me { color: #FFE1C2 !important; }
.page-content .remember-me input { accent-color: #F5C842; }
.upload-side .form-field label { color: #FFE1C2 !important; }
.range-separator { color: #FFE1C2 !important; }

.login-form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
}

.form-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-field label {
    font-weight: 600;
    color: #7a0c0c;
}

.form-field input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(221, 8, 2, 0.3);
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.95);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-field input:focus {
    outline: none;
    border-color: #dd0802;
    box-shadow: 0 0 0 4px rgba(221, 8, 2, 0.15);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: #7a0c0c;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remember-me input {
    accent-color: #dd0802;
}

.forgot-link {
    color: #dd0802;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #b30702;
}

.login-submit {
    padding: 0.9rem 2.5rem;
    background-color: #dd0802;
    color: white;
    border: none;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-submit:hover {
    background-color: #b30702;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(221, 8, 2, 0.25);
}

/* Common page content styles */
.page-content {
    text-align: center;
}

.page-content h1 {
    color: #dd0802;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: bold;
}

.page-content p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About page specific styles */
#about {    
    text-align: center;
	padding-top:5px;
}

#about h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

#about .content p {
    font-size: 1.25rem;
    text-align: center;
    padding: 15px;
    margin: 20px auto;
    max-width: 800px;
}

/* Invisible button styles */
.back-button,
.homecontentnav,
a.back-button,
a.homecontentnav {
    display: inline-block;
    padding: 12px 30px;
    margin-top: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    color: #dd0802;
    background-color: transparent;
    border: 2px solid transparent;
    border-radius: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.back-button:hover,
.homecontentnav:hover,
a.back-button:hover,
a.homecontentnav:hover {
    background-color: #dd0802;
    color: white;
    border: 2px solid #dd0802;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(221, 8, 2, 0.3);
}
