/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.signup-page {
    display: flex;
    height: 100vh;
}

/* Left section - Form */
.left-section {
    flex: 1;
    background: #f5f4f0;
    display: flex;
    flex-direction: column;
    padding: 40px 60px;
    position: relative;
    overflow-y: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 40px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 28px;
    font-weight: 500;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.logo-arabic {
    font-size: 20px;
    color: #716d52;
    font-weight: 400;
}

.form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
}

h1 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 2px;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

h2 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 12px;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.highlight {
    color: #95b70f;
    font-style: italic;
    font-weight: 400;
}

.subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
    font-weight: 400;
    line-height: 1.4;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
}

.signup-form > * {
    margin: 0;
}

.email-input,
.password-input,
input[type="text"],
input[type="tel"],
input[type="password"],
select {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 28px;
    background: #ffffff;
    transition: all 0.2s ease;
    font-weight: 400;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.email-input:focus,
.password-input:focus,
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
select:focus {
    outline: none;
    border-color: #95b70f;
    box-shadow: 0 0 0 3px rgba(149, 183, 15, 0.1);
}

.email-input::placeholder,
.password-input::placeholder,
input[type="text"]::placeholder,
input[type="tel"]::placeholder,
input[type="password"]::placeholder {
    color: #999;
}

/* Custom styling for select dropdowns */
select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23999999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 45px;
}

.signin-form {
    gap: 16px;
}

.forgot-link {
    margin-top: 16px;
    text-align: center;
}

.forgot-link a {
    color: #95b70f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forgot-link a:hover {
    text-decoration: underline;
}

.btn-continue {
    width: 100%;
    padding: 16px 24px;
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.btn-continue:hover {
    background: #000000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-continue:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.terms {
    font-size: 12px;
    color: #999;
    font-weight: 400;
    line-height: 1.5;
}

.terms a {
    color: #666;
    text-decoration: underline;
}

.terms a:hover {
    color: #1a1a1a;
}

.signin-link {
    font-size: 14px;
    color: #666;
    font-weight: 400;
    text-align: center;
}

.signin-link a {
    color: #1a1a1a;
    text-decoration: underline;
    font-weight: 500;
}

.signin-link a:hover {
    color: #95b70f;
}

/* Right section - Illustration */
.right-section {
    flex: 1;
    background: #ebe9e3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('shape-illustration.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 320px auto;
    padding: 60px;
}

.right-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 1px;
    background: #e0e0e0;
}

.right-section svg,
.illustration-img {
    width: 100%;
    max-width: 320px;
    height: auto;
}

/* Responsive design */
@media (max-width: 1024px) {
    .left-section {
        padding: 40px 60px;
    }
    
    h1, h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .signup-page {
        flex-direction: column;
    }
    
    .left-section {
        padding: 40px;
    }
    
    .right-section {
        padding: 40px;
        min-height: 300px;
    }
    
    .right-section::before {
        display: none;
    }
    
    .logo {
        margin-bottom: 40px;
    }
    
    h1, h2 {
        font-size: 24px;
    }
}

/* Form Steps */
.form-step {
    animation: fadeIn 0.3s ease-in-out;
}

.form-step:not(.active) {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 28px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    background: white;
}

.form-group input[type="text"]::placeholder,
.form-group input[type="tel"]::placeholder,
.form-group input[type="password"]::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group textarea {
    border-radius: 20px;
    resize: vertical;
    min-height: 100px;
    padding: 16px 20px;
    line-height: 1.5;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #95b70f;
    box-shadow: 0 0 0 3px rgba(149, 183, 15, 0.1);
}

/* Field Hints */
.field-hint {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

/* Size Buttons */
.size-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.size-btn {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    background: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.size-btn:hover {
    border-color: #95b70f;
    background: #f8fdf8;
}

.size-btn.selected {
    background: #95b70f;
    color: white;
    border-color: #95b70f;
}

/* Custom Dropdown */
.custom-dropdown {
    position: relative;
    cursor: pointer;
}

.dropdown-selected {
    padding: 14px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 28px;
    background: white;
    font-size: 15px;
    color: #666;
    position: relative;
    padding-right: 45px;
    transition: all 0.2s ease;
}

.dropdown-selected:hover {
    border-color: #95b70f;
}

.dropdown-selected::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23999999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    margin-top: 4px;
    padding: 8px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 10;
    max-height: 360px;
    overflow-y: auto;
}

.dropdown-options label {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 15px;
    color: #333;
}

.dropdown-options label:hover {
    background: #f8f8f8;
}

.dropdown-options input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #95b70f;
}

/* File Upload */
.file-upload-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    margin-bottom: 12px;
    background: #fafafa;
    transition: all 0.2s ease;
}

.file-upload-item:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.file-icon {
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 20px;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 15px;
    margin-bottom: 4px;
}

.file-desc {
    font-size: 13px;
    color: #666;
}

.btn-select-file {
    padding: 10px 24px;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    background: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-select-file:hover {
    background: #f8f8f8;
    border-color: #95b70f;
    color: #95b70f;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.btn-back {
    flex: 1;
    padding: 16px 32px;
    border: 1.5px solid #e0e0e0;
    border-radius: 28px;
    background: white;
    color: #666;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background: #fafafa;
    border-color: #999;
    color: #333;
}

/* Section Titles */
.form-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 24px;
    margin-top: 32px;
    letter-spacing: -0.01em;
}

/* Visual polish */
.form-step {
    padding-bottom: 20px;
}

/* Focus states */
*:focus-visible {
    outline: 2px solid #95b70f;
    outline-offset: 3px;
}

input[type="checkbox"]:focus-visible {
    outline-offset: 1px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}