/* Postcode Checker Styles - Modern & Professional */
.postcode-checker-container {
    max-width: 620px;
    margin: 0 auto;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', system-ui, sans-serif;
    position: relative;
}

.postcode-checker-form {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 8px 25px rgba(0, 0, 0, 0.06),
        0 1px 6px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.postcode-checker-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1B9C85 0%, #20A48A 50%, #1B9C85 100%);
    background-size: 200% 100%;
    animation: postcode-checker-shimmer 3s ease-in-out infinite;
}

@keyframes postcode-checker-shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.postcode-checker-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1B9C85 0%, #20A48A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.postcode-checker-description {
    text-align: center;
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 450;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.postcode-checker-input-wrapper {
    display: flex !important;
    position: relative !important;
    margin-bottom: 1.5rem !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(8px) !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
}

.postcode-checker-input-wrapper:focus-within {
    border-color: #1B9C85 !important;
    box-shadow: 
        0 0 0 4px rgba(27, 156, 133, 0.12),
        inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

#postcode-checker-input {
    flex: 1 !important;
    padding: 1.25rem 1.5rem !important;
    border: none !important;
    background: transparent !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    color: #111827 !important;
    outline: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#postcode-checker-input::placeholder {
    color: #9ca3af !important;
    font-weight: 400 !important;
    font-size: 1rem !important;
}

.postcode-checker-check-btn {
    padding: 1.25rem 2rem !important;
    background: linear-gradient(135deg, #1B9C85 0%, #20A48A 50%, #1B9C85 100%) !important;
    background-size: 200% 200% !important;
    color: white !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    min-width: 160px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    position: relative !important;
    overflow: hidden !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: none !important;
    border-left: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.postcode-checker-check-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.postcode-checker-check-btn:hover::before {
    left: 100%;
}

.postcode-checker-input-wrapper:hover .postcode-checker-check-btn,
.postcode-checker-input-wrapper:focus-within .postcode-checker-check-btn {
    background-position: 100% 0;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.postcode-checker-check-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.postcode-checker-btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

.postcode-checker-spinner {
    width: 24px;
    height: 24px;
    animation: postcode-checker-spin 1s linear infinite;
}

.postcode-checker-spinner .postcode-checker-path {
    stroke: currentColor;
    stroke-width: 3;
    stroke-dasharray: 90, 150;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    animation: postcode-checker-dash 1.5s ease-in-out infinite;
}

@keyframes postcode-checker-spin {
    to { transform: rotate(360deg); }
}

@keyframes postcode-checker-dash {
    0% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.postcode-checker-result {
    margin-top: 2rem;
    padding: 2rem 1.5rem;
    border-radius: 20px;
    animation: postcode-checker-slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.postcode-checker-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    opacity: 0.95;
    z-index: -1;
}

@keyframes postcode-checker-slideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.postcode-checker-result.postcode-checker-success {
    background: linear-gradient(135deg, 
        rgba(27, 156, 133, 0.1) 0%, 
        rgba(32, 164, 138, 0.05) 100%);
    border-color: rgba(27, 156, 133, 0.3);
    color: #0f766e;
}

.postcode-checker-result.postcode-checker-error {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.1) 0%, 
        rgba(220, 38, 38, 0.05) 100%);
    border-color: rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

.postcode-checker-result-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.postcode-checker-result-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: postcode-checker-iconPulse 2s ease-in-out infinite;
}

@keyframes postcode-checker-iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.postcode-checker-result.postcode-checker-success .postcode-checker-result-icon {
    background: linear-gradient(135deg, #1B9C85 0%, #20A48A 100%);
    color: white;
    box-shadow: 0 8px 32px rgba(27, 156, 133, 0.3);
}

.postcode-checker-result.postcode-checker-success .postcode-checker-result-icon::before {
    content: "✓";
}

.postcode-checker-result.postcode-checker-error .postcode-checker-result-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.3);
}

.postcode-checker-result.postcode-checker-error .postcode-checker-result-icon::before {
    content: "✗";
}

.postcode-checker-result-message {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.5;
    max-width: 320px;
}

.postcode-checker-continue-btn {
    background: linear-gradient(135deg, #1B9C85 0%, #20A48A 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 1rem 2.5rem !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-top: 0.5rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 6px 24px rgba(27, 156, 133, 0.25) !important;
}

.postcode-checker-continue-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.postcode-checker-continue-btn:hover::before {
    left: 100%;
}

.postcode-checker-continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(27, 156, 133, 0.35);
}

.postcode-checker-continue-btn:active {
    transform: translateY(0);
}

/* Responsive Design - Enhanced for Modern Devices */
@media (max-width: 768px) {
    .postcode-checker-container {
        padding: 1rem;
        max-width: 100%;
    }
    
    .postcode-checker-form {
        padding: 2rem 1.5rem;
        border-radius: 20px;
        margin: 0 0.5rem;
    }
    
    .postcode-checker-title {
        font-size: 1.75rem;
    }
    
    .postcode-checker-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .postcode-checker-input-wrapper {
        flex-direction: column;
        border-radius: 20px;
    }
    
    #postcode-checker-input {
        border-radius: 16px 16px 0 0;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .postcode-checker-check-btn {
        width: 100%;
        min-width: unset;
        padding: 1.25rem;
        font-size: 1rem;
        border-radius: 0 0 16px 16px;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .postcode-checker-result-icon {
        width: 56px;
        height: 56px;
        font-size: 1.75rem;
    }
    
    .postcode-checker-result-message {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .postcode-checker-container {
        padding: 0.5rem;
    }
    
    .postcode-checker-form {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
        margin: 0;
    }
    
    .postcode-checker-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .postcode-checker-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .postcode-checker-input-wrapper {
        border-radius: 16px;
    }
    
    #postcode-checker-input {
        padding: 1rem 1.25rem;
        font-size: 1rem;
        border-radius: 12px 12px 0 0;
    }
    
    .postcode-checker-check-btn {
        padding: 1rem;
        font-size: 0.95rem;
        border-radius: 0 0 12px 12px;
    }
    
    .postcode-checker-result {
        padding: 1.5rem 1.25rem;
        margin-top: 1.5rem;
    }
    
    .postcode-checker-result-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    
    .postcode-checker-result-message {
        font-size: 1rem;
    }
    
    .postcode-checker-continue-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
    }
}



/* Enhanced Animations and Interactions */
.postcode-checker-input-wrapper.postcode-checker-shake {
    animation: postcode-checker-shake 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes postcode-checker-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(4px); }
}

/* Loading state enhancements */
.postcode-checker-form.postcode-checker-loading {
    position: relative;
}

.postcode-checker-form.postcode-checker-loading .postcode-checker-input-wrapper {
    pointer-events: none;
    opacity: 0.6;
}

.postcode-checker-form.postcode-checker-loading #postcode-checker-input {
    background: rgba(255, 255, 255, 0.5);
}

.postcode-checker-form.postcode-checker-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    border-radius: 24px;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    animation: postcode-checker-fadeIn 0.3s ease-out forwards;
}

@keyframes postcode-checker-fadeIn {
    to { opacity: 1; }
}

/* Focus enhancements for accessibility */
.postcode-checker-check-btn:focus-visible,
.postcode-checker-continue-btn:focus-visible {
    outline: 3px solid rgba(27, 156, 133, 0.5);
    outline-offset: 2px;
}

.postcode-checker-input-wrapper:focus-within {
    outline: none;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .postcode-checker-form::before {
        animation: none;
    }
    
    .postcode-checker-result-icon {
        animation: none;
    }
}
