/* Add Phone Modal Styles */

/* Modal Overlay */
.add-phone-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001; /* Höher als das Haupt-Modal */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.add-phone-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.add-phone-modal {
    width: 450px;
    height: auto;
    min-height: 380px;
    background: var(--modal-background);
    border-radius: 20px;
    box-shadow: 0 8px 40px var(--modal-shadow);
    position: relative;
    font-family: var(--font-family);
    transform: scale(0.8) translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.add-phone-modal-overlay.show .add-phone-modal {
    transform: scale(1) translateY(0);
}

/* Modal Content */
.add-phone-modal-content {
    padding: 40px 32px 32px 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Modal Icon */
.add-phone-modal-icon {
    width: 60px;
    height: 60px;
    background: #0071e3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.add-phone-modal-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

/* Modal Info */
.add-phone-modal-info {
    margin-bottom: 24px;
    max-width: 350px;
}

.add-phone-modal-info h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--primary-text);
    margin: 0 0 8px 0;
    font-family: var(--font-family);
}

.add-phone-modal-info p {
    font-size: 14px;
    font-weight: 400;
    color: var(--secondary-text);
    line-height: 1.4;
    margin: 0;
}

/* Form Styles */
.add-phone-modal-form {
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.add-phone-form-group {
    position: relative;
}

/* Country Selector */
.add-phone-country-select {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    line-height: 1.47;
    border: 1px solid var(--input-border);
    border-radius: 12px;
    background-color: var(--modal-background);
    color: var(--primary-text);
    font-family: var(--font-family);
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    font-weight: 400;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 48px;
}

.add-phone-country-select:focus {
    outline: none;
    border-color: var(--input-border-focus);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

/* Phone Input */
.add-phone-form-input {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    line-height: 1.47;
    border: 1px solid var(--input-border);
    border-radius: 12px;
    background-color: var(--modal-background);
    color: var(--primary-text);
    font-family: var(--font-family);
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    font-weight: 400;
}

.add-phone-form-input:focus {
    outline: none;
    border-color: var(--input-border-focus);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

.add-phone-form-input::placeholder {
    color: var(--secondary-text);
    font-weight: 400;
}

/* Button Container */
.add-phone-button-container {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    width: 100%;
}

/* Cancel Button */
.add-phone-cancel-button {
    width: 180px;
    height: 36px;
    border: 1px solid var(--input-border);
    background-color: transparent;
    color: var(--primary-text);
    border-radius: 18px;
    font-size: 17px;
    font-weight: 400;
    font-family: var(--font-family);
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.add-phone-cancel-button:hover {
    background-color: #f5f5f7;
}

/* Continue Button */
.add-phone-continue-button {
    width: 180px;
    height: 36px;
    background-color: var(--button-primary);
    color: white;
    border: none;
    border-radius: 18px;
    font-size: 17px;
    font-weight: 400;
    font-family: var(--font-family);
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.add-phone-continue-button:hover {
    background-color: var(--button-primary-hover);
}

.add-phone-continue-button:active {
    transform: translateY(1px);
}

.add-phone-continue-button:disabled {
    background-color: var(--secondary-text);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .add-phone-modal {
        width: 90vw;
        max-width: 450px;
        margin: 20px;
    }
    
    .add-phone-modal-content {
        padding: 32px 24px 24px 24px;
    }
    
    .add-phone-modal-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 20px;
    }
    
    .add-phone-modal-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .add-phone-form-input,
    .add-phone-country-select {
        padding: 14px;
        padding-right: 40px;
        font-size: 16px;
    }
    
    .add-phone-button-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .add-phone-cancel-button,
    .add-phone-continue-button {
        width: 100%;
        height: 40px;
        font-size: 16px;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .add-phone-modal {
        width: 95vw;
        border-radius: 16px;
    }
    
    .add-phone-modal-content {
        padding: 28px 20px 20px 20px;
    }
    
    .add-phone-modal-info h3 {
        font-size: 16px;
    }
    
    .add-phone-modal-info p {
        font-size: 13px;
    }
    
    .add-phone-button-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .add-phone-cancel-button,
    .add-phone-continue-button {
        width: 100%;
        height: 44px;
        font-size: 17px;
        border-radius: 22px;
    }
}

/* Animation for form fields */
.add-phone-form-group {
    animation: slideInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation-fill-mode: both;
}

.add-phone-form-group:nth-child(1) { animation-delay: 0.1s; }
.add-phone-form-group:nth-child(2) { animation-delay: 0.15s; }

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