/* --- General Styles (can be moved to main style.css) --- */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --border-color: #ced4da;
    --input-bg: #f8f9fa;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--light-gray);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
}

/* --- Header Styles for Seller Signup Page --- */
.seller-header {
    background: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.seller-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seller-header .logo a {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--dark-gray);
    text-decoration: none;
}

.seller-header nav ul {
    list-style: none;
    display: flex;
    margin: 0;
}

.seller-header nav ul li {
    margin-left: 25px;
}

.seller-header nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    font-size: 1.1rem;
}

/* --- Seller Signup Section --- */
.seller-signup-section {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    background-color: var(--light-gray);
}

.seller-signup-box {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.seller-signup-box h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--dark-gray);
}

.seller-signup-box .sub-heading {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--dark-gray);
    margin-top: 35px;
    margin-bottom: 15px;
    text-align: left;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

/* Styling for textarea */
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    background-color: var(--input-bg);
    transition: border-color 0.3s ease;
    resize: vertical;
}

.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Styling for inputs and selects */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select,
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 15px 12px 45px; /* Padding for icon */
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    background-color: var(--input-bg);
    transition: border-color 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Icon positioning */
.form-group i {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 1rem;
}

.form-group input:focus + i,
.form-group select:focus + .select-wrapper i {
    color: var(--primary-color);
}

/* Styling for the select wrapper and its icon */
.select-wrapper {
    position: relative;
}

.select-wrapper i {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 1rem;
    z-index: 1;
}

#sellerCountry {
    padding-left: 45px;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 1.1-.9 2-2 2H5a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V12a2 2 0 0 0-2-2z"></path><circle cx="9" cy="13" r="2"></circle><path d="M14 17v.01"></path><path d="M22 10l-6-6-6 6"></path></svg>');
    background-repeat: no-repeat;
    background-position: 15px center;
    background-size: 20px;
}

.password-hint {
    display: block;
    font-size: 0.85rem;
    color: #777;
    margin-top: 5px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    text-align: left;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
    cursor: pointer;
}

.checkbox-group label {
    font-weight: normal;
    color: #555;
    display: inline;
    margin-bottom: 0;
}

.checkbox-group label a {
    font-weight: bold;
}

.note {
    font-size: 0.9rem;
    color: #777;
    text-align: left;
    margin-top: -15px;
    margin-bottom: 25px;
}

/* File Upload Styling */
.file-upload-wrapper {
    position: relative;
    width: 100%;
    height: 50px; /* Fixed height for better layout */
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--input-bg);
    display: flex;
    align-items: center;
    padding: 0 15px;
    overflow: hidden; /* Hide parts of the input that go beyond */
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Hide the default file input */
    cursor: pointer;
    z-index: 2; /* Ensure it's on top */
}

.file-upload-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    z-index: 1; /* Behind the input but visible */
}

.file-name-display {
    margin-left: 40px; /* Space for icon */
    color: #777;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1; /* Allow it to take up available space */
}

/* When a file is chosen, change the text */
.file-upload-wrapper.has-file .file-name-display {
    color: var(--dark-gray);
}


/* Styling for Address Fields */
.form-group input[id^="address"], /* Target address line 1, 2, city, state, postal */
.form-group input[id="city"],
.form-group input[id="stateProvince"],
.form-group input[id="postalCode"] {
    /* Use the same input styling as others */
}

.seller-signup-box .btn.btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 20px;
}

.seller-signup-footer-links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.seller-signup-footer-links p {
    margin-bottom: 10px;
    color: #555;
}

.seller-signup-footer-links a {
    font-weight: bold;
}

.social-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}
.social-login p {
    margin-bottom: 15px;
    font-weight: bold;
    color: #555;
}
.btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e0e0;
    color: #333;
    width: 220px;
    margin: 5px 0;
    border: none;
    transition: background-color 0.3s ease;
}
.btn-social i {
    margin-right: 10px;
    font-size: 1.2rem;
}
.btn-social.google {
    background-color: #db4437;
    color: #fff;
}
.btn-social.google:hover {
    background-color: #c0392b;
}
.btn-social.facebook {
    background-color: #4267B2;
    color: #fff;
}
.btn-social.facebook:hover {
    background-color: #365899;
}

/* Error message styling */
.form-group input.input-error,
.form-group select.input-error,
.form-group textarea.input-error {
    border-color: var(--danger-color);
}
.form-group .error-message {
    color: var(--danger-color);
    font-size: 0.85rem;
    display: block;
    margin-top: 5px;
    text-align: left;
}



/* ===== Logo Styling ===== */
.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: inline-block;
  text-decoration: none;
}

.logo img {
  width: 120px;     /* adjust size to fit header */
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);   /* slight zoom on hover */
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .logo img {
    width: 90px; /* smaller logo on mobile */
  }
}



/* --- Footer Styles for Seller Signup Page --- */
.seller-footer {
    background: var(--dark-gray);
    color: #bbb;
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
    font-size: 0.9rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .seller-header .container {
        flex-direction: column;
        gap: 15px;
    }
    .seller-header nav ul {
        flex-direction: column;
        gap: 10px;
    }
    .seller-header nav ul li {
        margin-left: 0;
    }

    .seller-signup-box {
        padding: 30px;
        margin: 20px;
    }

    .seller-signup-box h2 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.2rem;
        margin-top: 25px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"],
    .form-group select,
    .form-group input[type="tel"] {
        padding: 10px 15px 10px 40px;
    }

    .checkbox-group {
        flex-direction: column;
        align-items: flex-start;
    }
    .checkbox-group input[type="checkbox"] {
        margin-bottom: 10px;
    }

    .seller-signup-footer-links {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .social-login {
        flex-direction: column;
        width: 100%;
    }
    .btn-social {
        width: 100%;
    }
}