/* Import base styles from index.css and privacy.css */
@import url('index.css');

/* Ensure consistency with other pages */
/* Navigation, footer, and common elements inherit from index.css */

/* Override page title and subtitle to ensure consistency */
.page-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
}

/* Breadcrumb consistency */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb i {
    font-size: 12px;
    opacity: 0.6;
}

/* Data Deletion Page Specific Styles */
/* Data Deletion Hero - inherits from privacy-hero styles */
.deletion-hero {
    min-height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0585FF 0%, #0066CC 100%);
    overflow: hidden;
    padding-top: 100px;
}

.deletion-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
}

.security-notice {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    color: white;
}

.notice-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.notice-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.notice-content p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}

/* Deletion Content */
.deletion-content {
    padding: 80px 0;
    background: #f8f9fa;
    min-height: 100vh;
}

.deletion-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Step Styles */
.deletion-step {
    padding: 40px;
    display: none;
}

.deletion-step.active {
    display: block;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0585FF 0%, #0066CC 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-info h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.step-info p {
    color: #666;
    margin: 0;
    font-size: 1rem;
}

/* Form Styles - Override index.css floating labels for data deletion page */
.form-content {
    max-width: 500px;
}

.warning-notice {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.warning-notice i {
    color: #f39c12;
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.warning-notice p {
    color: #856404;
    margin: 0;
    font-weight: 500;
}

.deletion-step .form-group {
    margin-bottom: 25px;
    position: relative;
}

.deletion-step .form-group label {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-size: 1rem;
    position: static;
    transform: none;
    background: none;
    padding: 0;
    pointer-events: auto;
}

.deletion-step .form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #1a1a1a;
}

.deletion-step .form-input:focus {
    outline: none;
    border-color: #0585FF;
    background: white;
    box-shadow: 0 0 0 3px rgba(5, 133, 255, 0.1);
}

.code-input {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 8px;
    font-family: 'Courier New', monospace;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #0585FF 0%, #0066CC 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(5, 133, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 133, 255, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    font-size: 16px;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.btn-resend {
    background: #f8f9fa;
    color: #0585FF;
    border: 2px solid #0585FF;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 14px;
}

.btn-resend:hover {
    background: #0585FF;
    color: white;
}

.btn-resend:disabled {
    background: #e9ecef;
    color: #6c757d;
    border-color: #dee2e6;
    cursor: not-allowed;
}

/* Important Notice */
.important-notice {
    background: #e7f3ff;
    border: 1px solid #b8daff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.important-notice h3 {
    color: #0c5460;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.notice-text p {
    color: #0c5460;
    margin-bottom: 15px;
    line-height: 1.6;
}

.notice-text p:last-child {
    margin-bottom: 0;
}

/* Confirmation Actions */
.confirmation-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* Verification Input Group */
.verification-input-group {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 30px;
}

.verification-input-group .form-group {
    flex: 1;
    margin-bottom: 0;
    position: relative;
}

.verification-input-group .form-group label {
    position: static;
    transform: none;
    background: none;
    padding: 0;
    pointer-events: auto;
    margin-bottom: 8px;
}

.verification-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #e7f3ff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #b8daff;
}

.verification-info i {
    color: #0585FF;
    font-size: 24px;
}

.verification-info p {
    color: #0c5460;
    margin: 0;
    font-weight: 500;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 48px;
    color: white;
}

.success-message h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 15px;
}

.success-message p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0585FF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: #666;
    font-weight: 600;
    margin: 0;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.modal-header i {
    color: #dc3545;
    font-size: 24px;
}

.modal-header h3 {
    flex: 1;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
}

.modal-close {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #e9ecef;
    color: #1a1a1a;
}

.modal-body {
    padding: 30px;
}

.modal-body p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

.modal-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .deletion-hero {
        min-height: 50vh;
        padding-top: 80px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .security-notice {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .notice-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .deletion-content {
        padding: 60px 0;
    }
    
    .deletion-step {
        padding: 30px 20px;
    }
    
    .step-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .step-info h2 {
        font-size: 1.5rem;
    }
    
    .confirmation-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .confirmation-actions .btn-secondary,
    .confirmation-actions .btn-danger {
        width: 100%;
    }
    
    .verification-input-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-resend {
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .deletion-step {
        padding: 20px 15px;
    }
    
    .step-info h2 {
        font-size: 1.3rem;
    }
    
    .deletion-step .form-input {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .deletion-step .form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-danger {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .success-icon {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }
    
    .success-message h3 {
        font-size: 1.6rem;
    }
}

/* Animation for step transitions */
.deletion-step {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Focus states for accessibility */
.deletion-step .form-input:focus,
.btn-primary:focus,
.btn-secondary:focus,
.btn-danger:focus,
.btn-resend:focus {
    outline: 2px solid #0585FF;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .deletion-step .form-input {
        border-width: 3px;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-danger {
        border: 2px solid currentColor;
    }
}
