/* ===================================
   Supplier Registration Page Styles
   Wafra Joint Operations
   =================================== */

/* CSS Variables - Design System */
:root {
    /* Primary Colors */
    --primary-color: #0066cc;
    --primary-dark: #004c99;
    --primary-light: #3385d6;

    /* Secondary Colors */
    --secondary-color: #00a86b;
    --secondary-dark: #008556;
    --secondary-light: #33ba87;

    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Status Colors */
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
.site-header {
    background-color: white;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--gray-200);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logos-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.header-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Hero Section */
.hero-section {
    background: white;
    color: var(--gray-900);
    padding: 1.2rem 0 0.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-header-row {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
    background: none;
    border-radius: 0;
    padding: 1rem 2.5rem;
    backdrop-filter: none;
}

.hero-title-block {
    text-align: center;
}

.hero-subtitle-orgs {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    color: var(--gray-600);
    margin: 0.3rem 0 0;
    white-space: nowrap;
}

.hero-etendering {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--gray-900);
    margin: 0.6rem 0 0;
}

.hero-logos {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(5px);
}

.hero-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-chevron {
    background: white;
    border-radius: 10px;
    padding: 8px 12px;
}

.hero-logo-img {
    height: 88px;
    width: auto;
    object-fit: contain;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0;
    letter-spacing: 0.06em;
    color: var(--gray-900);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
}

.hero-description {
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.7;
}

/* Alert Messages */
.alert {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    margin: var(--spacing-lg) 0;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Steps Section */
.steps-section {
    padding: 1rem 0 var(--spacing-2xl);
    background: white;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-sm);
    color: var(--gray-900);
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: var(--gray-600);
    margin-bottom: var(--spacing-xl);
}

.steps-grid {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    margin-top: var(--spacing-xl);
    flex-wrap: nowrap;
}

.steps-grid .step-card {
    flex: 1 1 0;
    min-width: 0;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
}

.or-divider {
    flex: 0 0 auto;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
    margin: 0 1.2rem;
    flex-shrink: 0;
}

.step-card {
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.step-card:hover::before {
    transform: scaleX(1);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 auto var(--spacing-md);
    box-shadow: var(--shadow-md);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--gray-900);
}

.step-description {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Form Section */
.form-section {
    padding: var(--spacing-2xl) 0;
}

.inquiry-section {
    background-color: var(--gray-100);
}

.form-header {
    margin-bottom: var(--spacing-xl);
}

.form-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: box-shadow var(--transition-base);
}

.form-card:hover {
    box-shadow: var(--shadow-lg);
}

.form-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--gray-900);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--gray-200);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
    color: var(--gray-700);
    font-size: 0.9375rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-fast);
    background-color: white;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--gray-400);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-error {
    display: block;
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
    font-weight: 500;
}

.form-checkbox-group {
    margin-top: var(--spacing-md);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    cursor: pointer;
    user-select: none;
}

.form-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-text {
    color: var(--gray-700);
    line-height: 1.5;
}

.link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Buttons */
.form-actions {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-xl);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    font-family: inherit;
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #003366);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-dark), #006644);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* FAQ Section */
.faq-section {
    padding: var(--spacing-2xl) 0;
    background-color: white;
}

.faq-header {
    margin-bottom: var(--spacing-xl);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--gray-50);
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background-color var(--transition-fast);
}

.faq-question:hover {
    background: var(--gray-100);
}

.faq-question-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    flex: 1;
}

.faq-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: var(--spacing-lg);
    color: var(--gray-700);
    line-height: 1.7;
    background: white;
}

/* Contact Section */
.contact-section {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    color: white;
}

.contact-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.contact-description {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-xl);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1rem;
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-light);
}

/* Responsive Design — preserve desktop layout, scale fonts only */
@media (max-width: 900px) {
    .hero-title {
        font-size: 2.6rem;
    }
    .hero-subtitle-orgs {
        font-size: 0.9rem;
    }
    .hero-etendering {
        font-size: 1.3rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .steps-grid .step-card {
        min-width: 220px;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 1.8rem;
        letter-spacing: 0.02em;
    }
    .hero-subtitle-orgs {
        font-size: 0.65rem;
        white-space: normal;
    }
    .hero-etendering {
        font-size: 1rem;
    }
    .hero-logo-img {
        height: 52px;
    }
    .section-title {
        font-size: 1.4rem;
    }
    .steps-grid .step-card {
        min-width: 160px;
        padding: 1rem;
    }
    .or-divider {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
        margin: 0 0.5rem;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .form-card {
        padding: var(--spacing-md);
    }
    .contact-info {
        flex-direction: column;
        align-items: center;
    }
}

/* Loading State */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Print Styles */
@media print {

    .hero-section,
    .contact-section {
        background: white;
        color: black;
    }

    .btn {
        display: none;
    }
}