/* ========= General Reset & Box Sizing ========= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f7fa;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 100px; /* Adjust for fixed header & navigation */
}

/* Fixed Small Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px; /* Small height */
    background-color: #f8f8f8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0px;
    border-bottom: 2px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.logo img {
    display: block;
    width: 250px; /* Adjust as needed */
    height: auto;
}

 
/* Navigation Links */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-right a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 4px;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

/* Button Styles */
.register-btn { background-color: #0073e6; }
.login-btn { background-color: #28a745; }
.orders-btn { background-color: #16a085; }
.profile { background-color: #2980b9; }
.logout-btn { background-color: #e74c3c; }

.header-right a:hover {
    opacity: 0.8;
}

/* ========= Fixed Professional Navigation ========= */
.navigation {
    position: fixed;
    top: 70px; /* Directly below the header */
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: #34495e;
    padding: 12px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.tab-link {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    padding: 10px 20px;
    background-color: #2c3e50;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.tab-link:hover,
.tab-link.active {
    background-color: #16a085;
    transform: translateY(-2px);
} 

/* ========= Buttons ========= */
button {
    background-color: #2ecc71;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
}

/* ========= Responsive Design ========= */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 10px;
        text-align: center;
    }

    .header-center {
        margin-top: 5px;
        font-size: 14px;
    }

    .header-right {
        margin-top: 5px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .navigation {
        flex-direction: column;
        align-items: center;
        top: 90px;
    }

    .tab-link {
        margin: 5px 0;
        padding: 8px 15px;
    }

    .container {
        flex-direction: column;
    }
}
/* ========= Large Textarea for Instructions ========= */
#instructions-textarea {
    width: 100%;
    height: 200px;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #007bff;
    border-radius: 5px;
    resize: vertical;
    margin-bottom: 40px;
}

/* ========= Referencing Style & Sources (Uniform Width & Spacing) ========= */
.reference-sources {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.reference-sources select {
    width: 50%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #007bff;
    border-radius: 5px;
    background: white;
    color: #333;
}

/* ========= Plus/Minus Buttons for Sources ========= */
.sources-selection {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sources-selection button {
    width: 40px;
    height: 40px;
    font-size: 20px;
    border: none;
    background: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.sources-selection button:hover {
    background: #0056b3;
}

#sources-count {
    font-size: 18px;
    font-weight: bold;
}

/* ========= Mobile Responsive Design ========= */
@media (max-width: 768px) {
    .selection-container {
        width: 100%;
    }

    .subject-academic,
    .reference-sources {
        flex-direction: column;
    }

    .quick-selection {
        flex-wrap: wrap;
    }

    .quick-box {
        width: calc(25% - 10px);
    }

    .next-step {
        float: none;
        width: 100%;
        text-align: center;
    }
}

#your-account {
    max-width: 600px;
    margin: auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    text-align: center;
    font-size: 15px;
    font-family: Arial, sans-serif;
}

.customer-selection {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.toggle-btn {
    padding: 8px 15px;
    border: 1px solid #007bff;
    cursor: pointer;
    font-size: 14px;
    background-color: #ccc;
    border-radius: 4px;
    transition: 0.3s;
    font-weight: bold;
}

.toggle-btn.active {
    background-color: #007bff;
    color: white;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

textarea {
    height: 80px;
    resize: vertical;
}

.form-container {
    display: block;
    text-align: left;
    padding: 15px;
}

.hidden {
    display: none;
}

/* Arrange items side by side */
.form-row {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

.half-width {
    width: 48%;
}

.full-width {
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.terms-checkbox {
    text-align: left;
    margin: 10px 0;
}

/* Mobile Phone Input Styling */
.mobile-container {
    display: flex;
    gap: 5px;
}

#country-code {
    width: 20%;
    text-align: center;
    font-weight: bold;
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#phone-number {
    width: 75%;
}

/* Small, Professional Submit Button */
.small-submit-btn {
    padding: 6px 12px;
    font-size: 14px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.small-submit-btn:hover {
    background-color: #0056b3;
}

/* Align total & submit button on the same row */
.form-row p {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.form-row .small-submit-btn {
    margin-left: auto;
}

/* Reset Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* ========= Global Styles ========= */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --border-color: #ced4da;
    --background-light: #f8f9fa;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    line-height: 1.6;
    padding-top: 120px;
  }
   
  /* ========= Main Container Layout ========= */
  .container {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
  }
  
  .left-container {
    flex: 3;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  
  .right-container {
    flex: 1;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 140px;
  }
  
  /* ========= Form Sections ========= */
  .section {
    display: none;
    margin-bottom: 2rem;
  }
  
  .section.active-section {
    display: block;
  }
  
  h2 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
  }
  
  /* ========= Form Elements ========= */
   
  /* ========= Special Form Components ========= */
  .spacing-page-container {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
  }
  
  .spacing-buttons {
    display: flex;
    gap: 0.5rem;
  }
  
  .spacing-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
  }
  
  .spacing-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
  }
  
   
  /* ========= File Upload ========= */
  .file-upload {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin: 1rem 0;
    cursor: pointer;
    transition: border-color 0.2s;
  }
  
  .file-upload:hover {
    border-color: var(--primary-color);
  }
  
/*NEW CHANGES ON CHECKOUT*/
/* Writer Selection Styling */
.writer-selection {
    margin-top: 20px;
}

.writer-options-container {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

.writer-option {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    flex: 1;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.writer-option:hover {
    border-color: #ff6f61;
    background-color: #f9f9f9;
}

.writer-option input[type="radio"] {
    margin-right: 10px;
}

.writer-details h4 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.writer-details p {
    margin: 5px 0;
    color: #666;
}

.writer-details .small-text {
    font-size: 12px;
    color: #888;
}
  
  /* ========= Order Summary ========= */
  #order-summary p {
    margin: 0.75rem 0;
    display: flex;
    justify-content: space-between;
  }
  
  #order-summary span {
    font-weight: 500;
    color: var(--primary-color);
  }
  
  /* ========= Buttons & Progress ========= */
  /* General Button Styling */
.next-step, .back-step {
    display: inline-block;
    padding: 0.4rem 0.8rem;  /* Smaller size */
    font-size: 0.85rem;  /* Adjusted font size */
    font-weight: 500;
    border: none;
    border-radius: 4px;  /* Slightly rounded edges */
    cursor: pointer;
    transition: background 0.2s ease-in-out, transform 0.1s ease-in-out;
    text-decoration: none;
    text-align: center;
    min-width: 80px; /* Ensures button consistency */
}

/* Next Button: Green (Success) */
.next-step {
    background: var(--success-color, #28a745);
    color: white;
    position: absolute;
    right: 20px;  /* Positioned at the far right */
    bottom: 10px;
}

.next-step:hover {
    background: #218838;
    transform: scale(1.05);
}

/* Back Button: Gray */
.back-step {
    background: var(--gray-color, #6c757d);
    color: white;
    position: absolute;
    left: 20px;  /* Positioned at the far left */
    bottom: 10px;
}

.back-step:hover {
    background: #5a6268;
    transform: scale(1.05);
}

/* Ensuring proper positioning inside the section container */
.section {
    position: relative;  /* Allows absolute positioning for buttons */
    padding-bottom: 50px;  /* Space for buttons */
}

/* Responsive Fix for Small Screens */
@media (max-width: 600px) {
    .next-step, .back-step {
        min-width: 60px;
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

  button[type="submit"] {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    font-size: 1.1rem;
    margin-top: 1.5rem;
  }
  
  /* ========= Responsive Design ========= */
  @media (max-width: 768px) {
    .container {
      flex-direction: column;
      padding: 1rem;
    }
  
    .right-container {
      position: static;
    }
  
    .form-row {
      flex-direction: column;
      gap: 1rem;
    }
  
    .spacing-page-container {
      flex-direction: column;
    }
  }
  
  @media (max-width: 480px) {
    body {
      padding-top: 160px;
    }
  
    .navigation {
      top: 60px;
      padding: 0.5rem;
    }
  
    .tab-link {
      margin: 0 0.5rem;
      font-size: 0.9rem;
    }
  }

  /* Form Styling */
#order-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#order-form label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
}

#order-form select,
#order-form input[type="text"],
#order-form input[type="number"],
#order-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

#order-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Input Grid Layout */
.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Footer Styling */
.dashboard-footer {
    background-color: #222;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    padding: 20px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid #ff9800;
    display: inline-block;
    padding-bottom: 5px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 8px 0;
}

.footer-section ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ff9800;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
}

.social-media a {
    color: #fff;
    margin: 0 10px;
    transition: transform 0.3s ease;
}

.social-media a:hover {
    transform: scale(1.2);
    color: #ff9800;
}

.payment-methods i {
    margin: 10px;
    color: #f1c40f;
}

.trust-badges img {
    max-width: 80px;
    margin: 10px;
    border-radius: 5px;
}

.copyright {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.8;
    border-top: 1px solid #444;
    padding-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section {
        text-align: center;
    }
}

/* Add these to prevent layout shifts */
.section {
    display: none;
}

.section.active-section {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Error handling */
.error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

.input-error {
    border-color: #dc3545 !important;
}