* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    padding: 40px;
    border: 1px solid #e0e0e0;
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    color: #333;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
}

.header p {
    color: #888;
    font-size: 14px;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s;
    background: #fafafa;
}

input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: #333;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.otp-input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.otp-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    transition: all 0.2s;
    background: #fafafa;
    color: #333;
}

.otp-input:focus {
    outline: none;
    border-color: #333;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: #333;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
    background: white;
    color: #666;
    margin-top: 10px;
    border: 1px solid #e8e8e8;
}

.btn-secondary:hover {
    background: #fafafa;
    border-color: #333;
    color: #333;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

.timer {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-top: 15px;
}

.timer.warning {
    color: #000;
    font-weight: 600;
}

.message {
    padding: 12px 16px;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
}

.message.error {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.message.success {
    background: #f8f8f8;
    color: #333;
    border: 1px solid #e0e0e0;
}

.message.info {
    background: #fafafa;
    color: #555;
    border: 1px solid #e5e5e5;
}

.result-container {
    margin-top: 30px;
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.result-safe {
    color: #333;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
}

.result-warning {
    color: #000;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
}

.leak-details {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
}

.leak-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.leak-item:last-child {
    border-bottom: none;
}

.spinner {
    border: 2px solid #f0f0f0;
    border-top: 2px solid #333;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.pdf-viewer-container {
    margin-top: 30px;
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #f0f0f0;
}

.pdf-viewer-container h3 {
    color: #555;
    margin-bottom: 15px;
    font-weight: 600;
}

.pdf-frame {
    width: 100%;
    height: 600px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: white;
}

.pdf-download-btn {
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #555;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.pdf-download-btn:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.test-mode-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px dashed #e0e0e0;
}

.test-mode-label {
    text-align: center;
    color: #999;
    font-size: 11px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.test-mode-buttons {
    display: flex;
    gap: 10px;
}

.btn-test {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-test:hover {
    border-color: #333;
    background: #fafafa;
    color: #333;
    transform: translateY(-1px);
}

.alert-box {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 14px 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-badge {
    background: #333;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alert-text {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.section-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

.section-header {
    margin-bottom: 25px;
    text-align: center;
}

.section-header h2 {
    color: #333;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.section-header p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.info-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #e9ecef;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.info-icon {
    font-size: 18px;
}

.info-title {
    color: #495057;
    font-weight: 600;
    font-size: 14px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    color: #6c757d;
    font-size: 13px;
    line-height: 1.8;
    padding-left: 24px;
    position: relative;
    margin-bottom: 8px;
}

.info-list li:before {
    content: "✓";
    position: absolute;
    left: 6px;
    color: #666;
    font-weight: 600;
}
