* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 550px;
}

.form-wrapper {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header .icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.form-header h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.form-header p {
    color: #666;
    font-size: 14px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.label-icon {
    font-size: 16px;
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.phone-input-wrapper:focus-within {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.country-code {
    background: #667eea;
    color: white;
    padding: 14px 16px;
    font-weight: 600;
    font-size: 16px;
    user-select: none;
}

.phone-input-wrapper input {
    flex: 1;
    padding: 14px 16px;
    border: none;
    font-size: 16px;
    background: transparent;
    outline: none;
}

.form-group small {
    display: block;
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}

button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.result-container {
    margin-top: 25px;
    animation: slideUp 0.4s ease-out;
}

.result-card {
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e9 100%);
    border: 2px solid #4caf50;
    border-radius: 16px;
    padding: 25px;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.success-icon {
    font-size: 28px;
}

.result-header h3 {
    color: #2e7d32;
    font-size: 18px;
}

.result-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-item.highlight {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 2px dashed #4caf50;
    text-align: center;
}

.inbound-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
    text-decoration: none;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.inbound-number:hover {
    color: #764ba2;
    transform: scale(1.05);
}

.result-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.result-item {
    background: white;
    padding: 12px;
    border-radius: 8px;
}

.result-value {
    display: block;
    font-weight: 600;
    color: #333;
    margin-top: 4px;
    font-size: 14px;
    word-break: break-all;
}

.status-badge {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
}

.error-container {
    margin-top: 25px;
    animation: slideUp 0.4s ease-out;
}

.error-card {
    background: #fff3f3;
    border: 2px solid #ff5252;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.error-icon {
    font-size: 24px;
}

.error-message {
    color: #d32f2f;
    font-weight: 500;
}

@media (max-width: 600px) {
    .form-wrapper {
        padding: 25px;
    }
    
    .result-details {
        grid-template-columns: 1fr;
    }
    
    .inbound-number {
        font-size: 22px;
    }
}