/* Apple Cyberpunk Modal */

/* Modal Styles */
.cyberpunk-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
}

.cyberpunk-modal.active {
    display: flex;
    animation: modalFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-container {
    position: relative;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    z-index: 10001;
}

.modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.modal-content::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.05) 25%,
        rgba(255, 255, 255, 0.02) 50%,
        rgba(255, 255, 255, 0.05) 75%,
        rgba(255, 255, 255, 0.1) 100%
    );
    pointer-events: none;
    border-radius: 20px;
}

.modal-content::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 70%
    );
    animation: liquidGlassShimmer 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes liquidGlassShimmer {
    0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.3; }
    50% { transform: rotate(180deg) scale(1.1); opacity: 0.6; }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10002;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    transform: scale(1.04);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.form-header::before {
    content: '01100001 01100011 01100011 01100101 01110011 01110011';
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    height: 100%;
    color: rgba(52, 255, 122, 0.1);
    font-family: 'Courier New', monospace;
    font-size: 8px;
    letter-spacing: 1px;
    pointer-events: none;
    animation: matrixRain 4s linear infinite;
    opacity: 0;
}

@keyframes matrixRain {
    0%, 85%, 100% {
        opacity: 0;
        transform: translateY(-10px);
    }
    90% {
        opacity: 0.3;
        transform: translateY(0px);
    }
    95% {
        opacity: 0.1;
        transform: translateY(5px);
    }
}

.form-header h2 {
    color: rgba(255, 255, 255, 0.95);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin: 0;
    text-transform: none;
    position: relative;
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.1),
        0 0 8px rgba(255, 255, 255, 0.1);
    animation: matrixGlitch 3s ease-in-out infinite;
}

.form-header h2::before {
    content: 'Request Access';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    color: rgba(52, 255, 122, 0.7);
    animation: glitchOverlay 3s ease-in-out infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.form-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, rgba(52, 255, 122, 0.8), rgba(34, 197, 94, 0.8));
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(52, 255, 122, 0.3);
    animation: underlineGlitch 3s ease-in-out infinite;
}

@keyframes matrixGlitch {
    0%, 90%, 100% {
        text-shadow: 
            0 1px 2px rgba(0, 0, 0, 0.1),
            0 0 8px rgba(255, 255, 255, 0.1);
        transform: translate(0);
        filter: hue-rotate(0deg);
    }
    92% {
        text-shadow: 
            2px 0 rgba(52, 255, 122, 0.8),
            -2px 0 rgba(255, 0, 255, 0.8),
            0 0 8px rgba(255, 255, 255, 0.1);
        transform: translate(-2px, 1px);
        filter: hue-rotate(90deg);
    }
    94% {
        text-shadow: 
            -2px 0 rgba(52, 255, 122, 0.8),
            2px 0 rgba(0, 255, 255, 0.8),
            0 0 8px rgba(255, 255, 255, 0.1);
        transform: translate(2px, -1px);
        filter: hue-rotate(180deg);
    }
    96% {
        text-shadow: 
            0 1px 2px rgba(0, 0, 0, 0.1),
            0 0 8px rgba(255, 255, 255, 0.1);
        transform: translate(0);
        filter: hue-rotate(0deg);
    }
}

@keyframes glitchOverlay {
    0%, 90%, 100% {
        opacity: 0;
        transform: translate(0);
    }
    92% {
        opacity: 0.7;
        transform: translate(3px, 0);
        clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    }
    94% {
        opacity: 0.7;
        transform: translate(-3px, 0);
        clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    }
    96% {
        opacity: 0;
        transform: translate(0);
    }
}

@keyframes underlineGlitch {
    0%, 90%, 100% {
        box-shadow: 0 0 8px rgba(52, 255, 122, 0.3);
        transform: translateX(-50%) scaleX(1);
    }
    92% {
        box-shadow: 0 0 15px rgba(52, 255, 122, 0.8);
        transform: translateX(-50%) scaleX(1.2);
    }
    94% {
        box-shadow: 0 0 20px rgba(255, 0, 255, 0.6);
        transform: translateX(-50%) scaleX(0.8);
    }
    96% {
        box-shadow: 0 0 8px rgba(52, 255, 122, 0.3);
        transform: translateX(-50%) scaleX(1);
    }
}

/* Apple Cyberpunk Form */
.cyberpunk-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: none;
    letter-spacing: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.form-group input {
    width: 100%;
    padding: 16px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 400;
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
}

.form-group input:focus {
    border-color: rgba(0, 199, 190, 0.4);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 0 0 4px rgba(0, 199, 190, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.form-group input:focus::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

/* Green Glowing Submit Button */
.submit-btn {
    position: relative;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(52, 255, 122, 0.9), rgba(34, 197, 94, 0.9));
    border: 1px solid rgba(52, 255, 122, 0.3);
    border-radius: 12px;
    color: rgba(255, 255, 255, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 24px;
    width: 100%;
    box-sizing: border-box;
    text-transform: none;
    letter-spacing: -0.1px;
    overflow: hidden;
    box-shadow: 
        0 0 20px rgba(52, 255, 122, 0.4),
        0 4px 15px rgba(34, 197, 94, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: greenPulse 2s ease-in-out infinite;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.submit-btn:hover {
    background: linear-gradient(135deg, rgba(52, 255, 122, 1), rgba(34, 197, 94, 1));
    box-shadow: 
        0 0 30px rgba(52, 255, 122, 0.6),
        0 6px 25px rgba(34, 197, 94, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    border-color: rgba(52, 255, 122, 0.5);
}

.submit-btn:active {
    transform: translateY(-1px);
    box-shadow: 
        0 0 15px rgba(52, 255, 122, 0.5),
        0 2px 10px rgba(34, 197, 94, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-glitch {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.submit-btn:hover .btn-glitch {
    left: 100%;
}

@keyframes greenPulse {
    0%, 100% { 
        box-shadow: 
            0 0 20px rgba(52, 255, 122, 0.4),
            0 4px 15px rgba(34, 197, 94, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% { 
        box-shadow: 
            0 0 35px rgba(52, 255, 122, 0.6),
            0 6px 20px rgba(34, 197, 94, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

/* Apple Loading State */
.submit-btn.loading {
    pointer-events: none;
    opacity: 0.6;
}

.submit-btn.loading .btn-text::after {
    content: "";
    animation: appleLoading 1s infinite;
}

@keyframes appleLoading {
    0%, 33% { content: ""; }
    34%, 66% { content: "."; }
    67%, 100% { content: ".."; }
}

/* Apple Status Messages */
.form-message {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-message.success {
    background: rgba(52, 199, 89, 0.15);
    border: 1px solid rgba(52, 199, 89, 0.3);
    color: rgba(52, 199, 89, 1);
    opacity: 1;
    transform: translateY(0);
}

.form-message.error {
    background: rgba(255, 69, 58, 0.15);
    border: 1px solid rgba(255, 69, 58, 0.3);
    color: rgba(255, 69, 58, 1);
    opacity: 1;
    transform: translateY(0);
}

/* Apple-Style Animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(24px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-container {
        width: calc(100% - 32px);
    }
    
    .modal-content {
        padding: 28px 24px;
    }
    
    .form-header h2 {
        font-size: 24px;
    }
    
    .form-group input {
        padding: 14px;
        font-size: 16px;
    }
    
    .submit-btn {
        padding: 14px 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .modal-container {
        width: calc(100% - 20px);
    }
    
    .modal-content {
        padding: 24px 20px;
        border-radius: 16px;
    }
    
    .form-header h2 {
        font-size: 22px;
    }
    
    .form-header {
        margin-bottom: 28px;
    }
    
    .form-group input {
        padding: 12px;
        font-size: 16px;
    }
    
    .form-group label {
        font-size: 12px;
    }
    
    .submit-btn {
        padding: 14px;
        font-size: 16px;
    }
} 