/* ====================================================
   PRIVATE TRANSFER — Premium Dark Professional UI
   Universal Device Compatibility • Fluid Design
   ==================================================== */

/* ---------- GLOBAL VARIABLES ---------- */
.ptf-vision-pro {
    --space-xs: max(0.25rem, 0.5vw);
    --space-sm: max(0.5rem, 1vw);
    --space-md: max(1rem, 2vw);
    --space-lg: max(1.5rem, 3vw);
    --space-xl: max(2rem, 4vw);
    --space-2xl: max(3rem, 6vw);
    
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 22px;
    --radius-full: 999px;
    
    /* Premium Dark Theme */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-surface: rgba(25, 25, 25, 0.8);
    --bg-hover: rgba(40, 40, 40, 0.6);
    
    /* Accent Colors */
    --accent-primary: #3a86ff;
    --accent-secondary: #8338ec;
    --accent-gradient: linear-gradient(135deg, #3a86ff 0%, #8338ec 100%);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    /* Glass Effect */
    --glass-bg: rgba(15, 15, 15, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ---------- CONTAINER ---------- */
.ptf-container {
    width: min(100% - var(--space-xl), 1100px);
    margin: var(--space-md) auto;
    background: var(--glass-bg);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.ptf-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(58, 134, 255, 0.3) 50%, 
        transparent 100%);
}

/* ---------- HEADER ---------- */
.ptf-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    position: relative;
    padding-bottom: var(--space-lg);
}

.ptf-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.ptf-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ptf-header p {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---------- PROGRESS INDICATOR ---------- */
.ptf-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--space-xl);
}

.ptf-progress-step {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.ptf-progress-step.active {
    width: 24px;
    border-radius: 6px;
    background: var(--accent-gradient);
}

/* ---------- GRID SYSTEM ---------- */
.ptf-grid {
    display: grid;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

/* Mobile: 1 column */
@media (max-width: 639px) {
    .ptf-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablet: 2 columns */
@media (min-width: 640px) and (max-width: 1023px) {
    .ptf-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
    .ptf-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-lg);
    }
}

.ptf-grid-full {
    grid-column: 1 / -1;
}

/* ---------- INPUT GROUPS ---------- */
.ptf-input-group {
    position: relative;
}

.ptf-input-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ptf-input {
    width: 100%;
    padding: 18px 52px 18px 20px;
    font-size: 1rem;
    background: var(--bg-surface);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    font-family: inherit;
}

.ptf-input:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: var(--bg-hover);
}

.ptf-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(58, 134, 255, 0.2);
    background: var(--bg-hover);
    transform: translateY(-1px);
}

.ptf-input:read-only {
    background: rgba(40, 40, 40, 0.4);
    border-color: rgba(255, 255, 255, 0.05);
    cursor: not-allowed;
}

/* ---------- SELECT STYLING ---------- */
.ptf-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%233a86ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    cursor: pointer;
}

/* ---------- TEXTAREA ---------- */
.ptf-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
    font-family: inherit;
}

/* ---------- FIELD ICONS ---------- */
.field-icon {
    position: absolute;
    right: 20px;
    top: 42px;
    font-size: 1.2rem;
    opacity: 0.7;
    pointer-events: none;
}

/* ---------- BUTTON ---------- */
.ptf-button-group {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ptf-button {
    position: relative;
    width: 100%;
    max-width: 300px;
    padding: 20px 30px;
    font-size: 1.2rem;
    font-weight: 900;
    background: white;
    color: black;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 auto;
    display: block;
}

.ptf-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ptf-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(58, 134, 255, 0.4);
}

.ptf-button:hover::before {
    opacity: 1;
}

.ptf-button:active {
    transform: translateY(-1px);
    transition-duration: 0.1s;
}

/* ---------- RESPONSIVE ADJUSTMENTS ---------- */

/* Small Phones */
@media (max-width: 375px) {
    .ptf-container {
        padding: var(--space-md);
        border-radius: var(--radius-lg);
    }
    
    .ptf-input {
        padding: 16px 48px 16px 16px;
    }
    
    .field-icon {
        right: 16px;
        top: 38px;
    }
}

/* Large Phones & Small Tablets */
@media (min-width: 376px) and (max-width: 767px) {
    .ptf-container {
        padding: var(--space-lg);
    }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 1023px) {
    .ptf-container {
        margin: var(--space-lg);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .ptf-container {
        padding: var(--space-2xl);
    }
    
    .ptf-button {
        max-width: 450px;
        padding: 22px 48px;
        font-size: 1.2rem;
    }
}

/* Ultra-wide screens */
@media (min-width: 1600px) {
    .ptf-container {
        max-width: 1300px;
    }
}

/* ---------- DARK MODE SUPPORT ---------- */
@media (prefers-color-scheme: dark) {
    .ptf-container {
        --glass-bg: rgba(10, 10, 10, 0.95);
        --glass-border: rgba(255, 255, 255, 0.05);
    }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
    .ptf-input,
    .ptf-button,
    .ptf-progress-step {
        transition: none;
    }
    
    .ptf-button:hover {
        transform: none;
    }
}

/* ---------- HIGH CONTRAST ---------- */
@media (prefers-contrast: high) {
    .ptf-input {
        border-width: 3px;
    }
    
    .ptf-button {
        border: 2px solid white;
    }
}