/* Premium Escrow Create Form Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.escrow-public-container {
    background: #ffffff;
    min-height: 100vh;
    padding: 4rem 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.escrow-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .escrow-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* Intro Section */
.escrow-intro {
    background: transparent;
    padding: 3rem;
    border-radius: 24px;
    position: sticky;
    top: 2rem;
}

.intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #3b82f6;
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.escrow-intro h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.escrow-intro p {
    font-size: 1.125rem;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.feature-grid {
    display: grid;
    gap: 1rem;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    background: white;
    border-color: #3b82f6;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: #3b82f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-text h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 0.25rem 0;
}

.feature-text span {
    font-size: 0.85rem;
    color: #718096;
}

/* Form Card */
.escrow-card {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

/* Progress Bar */
.progress-bar-container {
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.progress-bar {
    height: 100%;
    background: #3b82f6;
    width: 25%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-step h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 1.125rem;
    color: #718096;
    margin-bottom: 2.5rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.75rem;
}

.form-control,
.form-select {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: #1a202c;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus,
.form-select:focus {
    background: white;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-control::placeholder {
    color: #a0aec0;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Custom Select */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 3rem;
}

/* Role Selector */
.role-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.role-option {
    cursor: pointer;
    position: relative;
}

.role-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.role-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.role-option input:checked+.role-card {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.role-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.role-text-group {
    display: flex;
    flex-direction: column;
}

.role-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.25rem;
}

.role-desc {
    font-size: 0.875rem;
    color: #718096;
}

/* Fee Selector */
.fee-selector {
    display: flex;
    gap: 1rem;
}

.fee-option {
    flex: 1;
    cursor: pointer;
}

.fee-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.fee-box {
    display: block;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.fee-option input:checked+.fee-box {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* Terms Grid */
.terms-grid {
    display: grid;
    gap: 0.75rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-item:hover {
    background: white;
    border-color: #cbd5e1;
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.checkbox-item span {
    font-size: 0.95rem;
    color: #2d3748;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.btn-primary {
    background: #3b82f6;
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e1;
}

.btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.4);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.5);
}

.w-full {
    width: 100%;
}

/* Form Navigation */
.form-nav {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
}

.form-nav .btn {
    flex: 1;
}

/* Review Box */
.review-box {
    background: #f7fafc;
    border-radius: 16px;
    padding: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .escrow-public-container {
        padding: 2rem 0;
    }

    .escrow-card {
        padding: 2rem 1.5rem;
    }

    .role-grid {
        grid-template-columns: 1fr;
    }

    .fee-selector {
        flex-direction: column;
    }

    .escrow-intro {
        position: relative;
        top: 0;
    }
}

/* Help Text */
.help-text {
    font-size: 0.875rem;
    color: #718096;
    margin-top: 0.5rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-slate-500 {
    color: #64748b;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.row {
    display: flex;
    gap: 1rem;
}

.col {
    flex: 1;
}