/* 
 * Gateway Styles for Coral Trade-In Program
 * Custom styling for the trade-in gateway page
  css/gateway_styles.css
 */

/* General Typography & Colors */
.trade-in-intro,
.trade-in-dashboard {
    font-family: 'Montserrat', 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
}

.trade-in-intro h1,
.trade-in-dashboard h1 {
    font-size: 38px;
    color: #181743; /* Brand blue */
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

.trade-in-intro h2,
.trade-in-dashboard h2 {
    font-size: 28px;
    color: #F38221; /* Brand orange */
    margin: 40px 0 20px;
    font-weight: 600;
    border-bottom: 2px solid #f3822133;
    padding-bottom: 10px;
}

.trade-in-intro h3,
.trade-in-dashboard h3 {
    font-size: 20px;
    color: #181743;
    margin: 20px 0 15px;
    font-weight: 600;
}

.trade-in-intro p,
.trade-in-dashboard p {
    margin-bottom: 15px;
    font-size: 16px;
}

/* Development Banner */
.development-banner {
    background-color: #FEF0E4; /* Light orange background */
    border: 2px solid #F38221; /* Brand orange border */
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 2px 6px rgba(243, 130, 33, 0.2);
}

.development-banner p {
    margin: 0;
    color: #333;
    font-size: 16px;
    line-height: 1.4;
    padding-left: 30px;
    position: relative;
}

.development-banner p::before {
    content: "\f071"; /* Font Awesome exclamation triangle icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    color: #F38221;
    font-size: 18px;
}

.development-banner a {
    color: #F38221;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}

.development-banner a:hover {
    color: #181743; /* Brand blue for hover state */
    text-decoration: underline;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.benefit-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.benefit-card i {
    font-size: 40px;
    color: #F38221;
    margin-bottom: 15px;
    display: block;
}

.benefit-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #181743;
}

.benefit-card p {
    margin: 0;
    color: #555;
}

/* Steps List */
.steps-list {
    counter-reset: steps;
    list-style-type: none;
    padding: 0;
    margin: 30px 0;
}

.steps-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
}

.step-number {
    counter-increment: steps;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #F38221;
    color: white;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 600;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content {
    padding-top: 5px;
}

.step-content h3 {
    margin-top: 0;
    margin-bottom: 5px;
}

.step-content p {
    margin: 0;
    color: #555;
}

/* Workflow Display */
.workflow-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    margin: 30px 0;
    position: relative;
}

.workflow-step {
    flex: 1;
    min-width: 150px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.workflow-icon {
    font-size: 35px;
    color: #F38221;
    margin: 10px 0;
}

.workflow-arrow {
    display: flex;
    align-items: center;
    color: #ccc;
    font-size: 24px;
    padding: 0 10px;
    z-index: 1;
}

.workflow-branches {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.workflow-branch {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 10px;
    border-left: 3px solid;
}

.workflow-branch:nth-child(1) {
    border-left-color: #28a745; /* Green */
}

.workflow-branch:nth-child(2) {
    border-left-color: #007bff; /* Blue */
}

.workflow-branch:nth-child(3) {
    border-left-color: #dc3545; /* Red */
}

.branch-label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #181743;
}

/* What We Accept Section */
.eligible-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.eligible-category {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    padding: 20px;
}

.eligible-category h3 {
    color: #F38221;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.eligible-category ul {
    margin: 0;
    padding-left: 20px;
}

.eligible-category li {
    margin-bottom: 8px;
    position: relative;
}

.eligible-category li::before {
    content: "•";
    color: #F38221;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.note {
    font-style: italic;
    color: #666;
    margin-top: 20px;
    text-align: center;
}

/* Submission Guidelines */
.submission-info {
    margin: 40px 0;
}

.submission-rule {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #F38221;
}

.submission-rule h3 {
    margin-top: 0;
    color: #181743;
}

.submission-rule p {
    margin-bottom: 0;
}

/* Call to Action */
.trade-in-cta {
    background-color: #181743;
    color: white;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    margin: 40px 0;
    max-width: 500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.trade-in-cta h2 {
    color: white !important;
    border-bottom: none !important;
    margin-top: 0;
}

.trade-in-cta p {
    font-size: 18px;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.register-button,
.login-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin: 0 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    outline: none;
    border: none;
}

.register-button {
    background-color: #F38221;
    color: white;
}

.login-button {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.register-button:hover,
.login-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-decoration: none;
}

/* Auth Dropdown Styling */
.auth-dropdown {
    position: relative;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.25);
    margin: 20px auto;
    max-width: 500px;
    overflow: hidden;
    z-index: 100;
}

.auth-form-container {
    padding: 5px;
}

.auth-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #F38221;
    padding-bottom: 10px;
}

.auth-form-header h3 {
    margin: 0;
    color: #181743;
    font-size: 20px;
    font-weight: 600;
}

.close-auth-form {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    padding: 0;
}

.close-auth-form:hover {
    color: #F38221;
}



/* FAQ Section */
.trade-in-faq {
    margin: 40px 0;
}

.faq-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 20px;
}

.faq-item h3 {
    margin-top: 0;
    color: #181743;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
    cursor: pointer;
    position: relative;
}

.faq-item h3:after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 24px;
    font-weight: normal;
    color: #F38221;
}

.faq-item h3.open:after {
    content: "-";
}

.faq-item p {
    margin-bottom: 0;
}

/* Dashboard Styles */
.dashboard-intro {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 4px solid #F38221;
}

/* Instruction Panel for Logged-in Users */
.trade-in-instruction-panel {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.trade-in-instruction-panel h2 {
    text-align: center;
    margin-top: 0;
}

/* Instruction Cards */
.instruction-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.instruction-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.instruction-card:hover {
    transform: translateY(-5px);
}

.instruction-icon {
    font-size: 36px;
    color: #F38221;
    margin-bottom: 15px;
}

.instruction-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #181743;
}

.instruction-card p {
    color: #555;
    margin-bottom: 0;
}

/* Accepted Items Summary */
.accepted-items-summary {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    border-left: 4px solid #28a745;
}

.accepted-items-summary h3 {
    color: #28a745;
    margin-top: 0;
}

.accepted-items-summary p {
    margin-bottom: 0;
}

/* Fix for form submission in logged-in view */
.ctim-form-container {
    margin-top: 40px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .benefits-grid,
    .eligible-items,
    .instruction-cards {
        grid-template-columns: 1fr;
    }
    
    .workflow-container {
        flex-direction: column;
        align-items: center;
    }
    
    .workflow-step {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .workflow-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .trade-in-cta {
        padding: 30px 20px;
    }
    
    .register-button,
    .login-button {
        display: block;
        margin: 10px auto;
        max-width: 80%;
    }
    
    .steps-list li {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .instruction-card {
        max-width: 350px;
        margin: 0 auto 20px;
    }
    
    .development-banner {
        padding: 12px 15px;
    }
    
    .development-banner p {
        font-size: 14px;
        padding-left: 26px;
    }
    
    .development-banner p::before {
        font-size: 16px;
    }
    
    .auth-dropdown {
        max-width: 100%;
        margin: 20px 10px;
    }
    
    .auth-form-container {
        padding: 15px;
    }
    

}

/* Dashboard Responsiveness Fixes */
@media (max-width: 600px) {
    .ctim-form-row label,
    .ctim-form-input,
    .ctim-form-select,
    .ctim-form-textarea {
        width: 100%;
    }
    
    .ctim-form-button {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* FORM VISIBILITY FIXES - Added to fix text visibility while preserving purple background */

/* New styles for the "Ready to Trade In" section to limit width on desktop */
.ready-to-trade-container {
    background-color: #181743 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    padding: 30px 20px !important;
    max-width: 500px !important;
    margin: 0 auto 40px !important;
}


/* Target the login dropdown and register dropdown */
#login-dropdown,
#register-dropdown {
    background-color: #181743 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    max-width: 400px !important;
    margin: 20px auto !important;
    padding: 20px !important;
}


/* Login/Register Dropdown */
#f2f-login-form input,
#f2f-register-form input {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #dddddd;
    padding: 10px;
    width: 100%;
    border-radius: 4px;
    margin-bottom: 10px;
}

#f2f-login-form button,
#f2f-register-form button {
    background-color: #F38221;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#f2f-login-form button:hover,
#f2f-register-form button:hover {
    background-color: #e67200;
}

#f2f-login-form label,
#f2f-register-form label {
    color: white;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

#f2f-login-form a {
    color: #F38221;
    text-decoration: none;
}

#f2f-login-form a:hover {
    color: white;
    text-decoration: underline;
}

/* Clear the container for the remember me and lost password */
.login-extras {
  display: flex;
  justify-content: space-between;
  align-items: center; /* This will center items vertically */
  width: 100%;
  margin-top: 15px;
}

/* Make sure the remember-me label is properly aligned */
.remember-me {
  display: flex;
  align-items: center;
}

/* Fix any vertical alignment issues with the checkbox */
#f2f-rememberme {
  margin-right: 5px;
  margin-top: 0;
  margin-bottom: 0;
}

/* Ensure the lost password link is vertically centered */
.lost-password {
  display: inline-flex;
  align-items: center;
  height: 100%;
}