/* Postcode Checker Popup Styles */

#wpc-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

#wpc-popup {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: wpc-slideIn 0.3s ease-out;
    color: #000;
    font-family: 'Arial', 'Helvetica Neue', Arial, sans-serif;
}

@keyframes wpc-slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#wpc-popup-header {
    background: #09382b;
    color: #fff;
    padding: 20px 25px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #f6a320;
}

#wpc-popup-header h3 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    color: #fff;
}

#wpc-popup-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

#wpc-popup-close:hover {
    background-color: rgba(44, 62, 80, 0.1);
    transform: scale(1.1);
}

#wpc-popup-content {
    padding: 25px;
}

#wpc-popup-content p {
    margin: 0 0 20px 0;
    font-size: 1.1em;
    color: #000;
    line-height: 1.5;
}

.wpc-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#wpc-postcode-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #09382b;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #000;
    background: #fff;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#wpc-postcode-input:focus {
    border-color: #09382b;
    box-shadow: 0 0 0 3px rgba(9, 56, 43, 0.1);
}

#wpc-postcode-input::placeholder {
    color: #95a5a6;
    font-weight: 400;
}

#wpc-check-button {
    background: #f6a320;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(246, 163, 32, 0.15);
}

#wpc-check-button:hover:not(:disabled) {
    background: #e5941c;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(246, 163, 32, 0.4);
}

#wpc-check-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.wpc-popup-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

#wpc-cancel-button {
    background: #09382b;
    color: #fff;
    border: 2px solid #09382b;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

#wpc-cancel-button:hover {
    background: #14543e;
    border-color: #14543e;
    color: #fff;
}

/* Result styles */
#wpc-result {
    margin: 20px 0;
    padding: 20px 20px 20px 20px;
    border-radius: 8px;
    border-left: 4px solid;
}

.wpc-result.wpc-success {
    background: #fff;
    border-left-color: #09382b;
    color: #09382b;
}

.wpc-result.wpc-error {
    background: #ffff;
    border-left-color: #e74c3c;
    color: #e74c3c;
}

.wpc-result.wpc-info {
    background: #fff;
    border-left-color: #f6a320;
    color: #f6a320;
}

.wpc-result p {
    margin: 0 0 15px 0;
    font-weight: 500;
}

.wpc-button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-right: 10px;
}

.wpc-button.wpc-primary {
    background: #f6a320;
    color: #fff;
    box-shadow: 0 4px 12px rgba(246, 163, 32, 0.3);
}

.wpc-button.wpc-primary:hover {
    background: #e5941c;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

.wpc-button.wpc-secondary {
    background: #09382b;
    color: #fff;
    box-shadow: 0 4px 12px rgba(9, 56, 43, 0.3);
}

.wpc-button.wpc-secondary:hover {
    background: #14543e;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

/* Responsive design */
@media (max-width: 480px) {
    #wpc-popup {
        width: 95%;
        margin: 20px;
    }
    
    #wpc-popup-header {
        padding: 15px 20px;
    }
    
    #wpc-popup-header h3 {
        font-size: 1.2em;
    }
    
    #wpc-popup-content {
        padding: 20px;
    }
    
    .wpc-input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    #wpc-check-button {
        width: 100%;
    }
    
    .wpc-button {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
        text-align: center;
    }
}

/* Loading animation */
@keyframes wpc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#wpc-check-button:disabled::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: wpc-spin 1s linear infinite;
    margin-left: 8px;
}

/* Focus styles for accessibility */
#wpc-popup *:focus {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    #wpc-popup-overlay {
        display: none !important;
    }
} 