/* ==========================================
   PEPPOL Verification Landing Page
   TrustUp Pro - Styles
   ========================================== */

/* CSS Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Bricolage Grotesque', sans-serif;
    background: #FFFFFF;
    color: #000000;
    line-height: 1.4;
}

/* ==========================================
   Page Wrapper
   ========================================== */
.page-wrapper {
    min-height: 100vh;
    background: linear-gradient(130.08deg, #F4F4EF 17.81%, #EEF1F4 45.96%, #F0EEF4 82.87%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ==========================================
   Header
   ========================================== */
.header {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.header-container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    display: block;
    height: 30px;
    width: auto;
}

.header-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.tagline {
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    letter-spacing: -0.03em;
    color: #000000;
    text-decoration: none;
}

.tagline:hover {
    text-decoration: underline;
}

.language-selector {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 8px 12px;
    gap: 5px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.13);
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    letter-spacing: -0.03em;
    color: #000000;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.language-selector:hover {
    border-color: rgba(0, 0, 0, 0.25);
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.08);
}

.language-selector i {
    font-size: 12px;
    color: #000000;
    transition: transform 0.2s ease;
}

.language-selector.open i {
    transform: rotate(180deg);
}

.language-selector {
    position: relative;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    min-width: 100%;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.13);
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 100;
}

.language-selector.open .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background: none;
    border: none;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 18px;
    letter-spacing: -0.03em;
    color: #000000;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.language-option:hover {
    background: #F6F6F6;
}

.language-option:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* ==========================================
   Main Content
   ========================================== */
.main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    gap: 0;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
    gap: 40px;
    width: 100%;
    max-width: 760px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: 40px;
    transform: rotate(-2.62deg);
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    letter-spacing: -0.03em;
    color: #000000;
}

.hero-title {
    width: 100%;
    font-weight: 800;
    font-size: 64px;
    line-height: 60px;
    text-align: center;
    letter-spacing: -0.04em;
    color: #000000;
}

.hero-subtitle {
    width: 100%;
    font-weight: 500;
    font-size: 26px;
    line-height: 30px;
    text-align: center;
    letter-spacing: -0.04em;
    color: #000000;
}

/* ==========================================
   Search Section
   ========================================== */
.search-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
}

.search-box {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px;
    gap: 10px;
    width: 100%;
    height: 80px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.1);
    border-radius: 40px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.search-box:focus-within {
    border-color: rgba(0, 0, 0, 0.35);
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.15);
}

.search-input-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    flex: 1;
    min-width: 0;
}

.search-input {
    width: 100%;
    height: 30px;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 30px;
    letter-spacing: -0.04em;
    color: #000000;
}

.search-input::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

.search-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: #FFC200;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.search-button:hover {
    background: #e6af00;
}

.search-button:active {
    transform: scale(0.96);
}

.search-button i {
    font-size: 22px;
    color: #000000;
}

.search-count {
    width: 100%;
    font-weight: 500;
    font-size: 18px;
    line-height: 18px;
    text-align: center;
    letter-spacing: -0.04em;
    color: rgba(0, 0, 0, 0.5);
}

/* ==========================================
   CTA Card
   ========================================== */
.cta-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    gap: 10px;
    width: 100%;
    max-width: 1000px;
    background: #FFFFFF;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    margin-bottom: 60px;
}

.cta-logo {
    margin-bottom: 10px;
}

.cta-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 70px;
    width: 100%;
}

.cta-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
}

.cta-title {
    font-weight: 800;
    font-size: 46px;
    line-height: 50px;
    letter-spacing: -0.03em;
    color: #000000;
}

.cta-description {
    font-weight: 500;
    font-size: 26px;
    line-height: 31px;
    letter-spacing: -0.03em;
    color: #000000;
}

.cta-button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0 22px;
    height: 50px;
    flex-shrink: 0;
    background: #FFC200;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    text-align: center;
    text-decoration: none;
    color: #000000;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
    background: #e6af00;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15);
}

.cta-button:active {
    transform: scale(0.98);
}

/* ==========================================
   Responsive Styles
   ========================================== */

/* Tablet */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 52px;
        line-height: 52px;
    }
    
    .hero-subtitle {
        font-size: 22px;
        line-height: 28px;
    }
    
    .cta-title {
        font-size: 38px;
        line-height: 42px;
    }
    
    .cta-description {
        font-size: 22px;
        line-height: 28px;
    }
    
    .cta-content {
        gap: 40px;
    }
}

/* Small Tablet / Large Mobile */
@media (max-width: 768px) {
    .header {
        padding: 30px 20px;
    }

    .header-container {
        display: grid;
        grid-template-columns: auto auto;
        grid-template-rows: auto auto;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
    }

    .header-right {
        display: contents;
    }

    .language-selector {
        grid-column: 2;
        grid-row: 1;
    }

    .tagline {
        font-size: 14px;
        grid-column: 1 / -1;
        grid-row: 2;
        text-align: center;
    }
    
    .hero {
        padding: 40px 0;
        gap: 30px;
    }
    
    .hero-title {
        font-size: 40px;
        line-height: 42px;
    }
    
    .hero-subtitle {
        font-size: 18px;
        line-height: 24px;
    }
    
    .search-box {
        height: 70px;
        padding: 8px;
    }
    
    .search-input {
        font-size: 16px;
        line-height: 24px;
    }
    
    .search-input-wrapper {
        padding: 0 12px;
    }
    
    .search-button {
        width: 54px;
        height: 54px;
    }
    
    .search-button i {
        font-size: 18px;
    }
    
    .search-count {
        font-size: 16px;
    }
    
    .cta-card {
        padding: 30px;
        margin-bottom: 40px;
    }
    
    .cta-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }
    
    .cta-title {
        font-size: 32px;
        line-height: 36px;
    }
    
    .cta-description {
        font-size: 18px;
        line-height: 24px;
    }
    
    .cta-button {
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .header {
        padding: 20px 16px;
    }

    .main {
        padding: 0 16px;
        gap: 0;
    }

    .logo img {
        height: 26px;
    }

    .tagline {
        font-size: 13px;
    }

    .language-selector {
        padding: 6px 10px;
        font-size: 14px;
    }

    .hero {
        padding: 30px 0;
        gap: 25px;
    }
    
    .hero-content {
        gap: 16px;
    }
    
    .hero-title {
        font-size: 32px;
        line-height: 34px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        line-height: 22px;
    }
    
    .search-section {
        gap: 12px;
    }
    
    .search-box {
        height: 64px;
        padding: 6px;
        border-radius: 32px;
    }
    
    .search-input {
        font-size: 16px;
        line-height: 20px;
    }

    .search-input::placeholder {
        font-size: 16px;
    }

    .search-input-wrapper {
        padding: 0 10px;
    }
    
    .search-button {
        width: 50px;
        height: 50px;
        border-radius: 25px;
    }
    
    .search-button i {
        font-size: 16px;
    }
    
    .search-count {
        font-size: 14px;
    }
    
    .cta-card {
        padding: 24px;
        border-radius: 16px;
        margin-bottom: 30px;
    }
    
    .cta-logo img {
        height: 26px;
    }
    
    .cta-text {
        gap: 14px;
    }
    
    .cta-title {
        font-size: 26px;
        line-height: 30px;
    }
    
    .cta-description {
        font-size: 16px;
        line-height: 22px;
    }
    
    .cta-button {
        height: 48px;
        font-size: 15px;
    }
}

/* ==========================================
   Error Message
   ========================================== */
.error-container {
    width: 100%;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    text-align: center;
    letter-spacing: -0.04em;
    color: #DE0030;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.2s ease, max-height 0.2s ease;
}

.error-container.visible {
    opacity: 1;
    max-height: 50px;
}

/* ==========================================
   Loader
   ========================================== */
.loader {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.search-button:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

/* ==========================================
   Result Card
   ========================================== */
.cta-card.result-card {
    padding: 0 0 40px;
    gap: 30px;
    max-width: 760px;
}

/* Result Header */
.result-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 20px 30px;
    gap: 30px;
    width: 100%;
    border-radius: 20px 20px 0 0;
}

.result-header--registered {
    background: #D5E6E0;
}

.result-header--not-registered {
    background: #F0D1D8;
}

.result-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.result-icon i {
    font-size: 64px;
    line-height: 64px;
    text-align: center;
    letter-spacing: -0.04em;
}

.result-header--registered .result-icon i {
    color: #00A669;
}

.result-header--not-registered .result-icon i {
    color: #DE0030;
}

.result-header-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    flex: 1;
}

.result-title {
    font-weight: 800;
    font-size: 38px;
    line-height: 46px;
    letter-spacing: -0.04em;
    color: #000000;
}

.result-vat {
    font-weight: 400;
    font-size: 24px;
    line-height: 29px;
    letter-spacing: -0.04em;
    color: #000000;
}

/* Result Message */
.result-message {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px 15px;
    margin: 0 30px;
    background: #F6F6F6;
    border-radius: 7px;
}

.result-message p {
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    letter-spacing: -0.04em;
    color: #000000;
}

/* Result Details (for registered) */
.result-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 30px;
}

.result-detail {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.result-detail-label {
    font-weight: 800;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: -0.04em;
    color: #000000;
}

.result-detail-value {
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: -0.04em;
    color: #000000;
}

/* Result CTA (for not registered) */
.result-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 30px;
    gap: 20px;
}

.result-cta-badge {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 5px 18px;
    background: #FFFFFF;
    border: 1px solid #000000;
    border-radius: 30px;
    transform: rotate(-2.54deg);
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: -0.04em;
    color: #000000;
}

.result-cta-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-cta-title {
    font-weight: 800;
    font-size: 28px;
    line-height: 34px;
    letter-spacing: -0.04em;
    color: #000000;
}

.result-cta-description {
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    letter-spacing: -0.04em;
    color: #000000;
}

/* ==========================================
   Result Card Responsive
   ========================================== */
@media (max-width: 768px) {
    .result-header {
        padding: 15px 20px;
        gap: 20px;
    }

    .result-icon {
        width: 48px;
        height: 48px;
    }

    .result-icon i {
        font-size: 48px;
        line-height: 48px;
    }

    .result-title {
        font-size: 28px;
        line-height: 34px;
    }

    .result-vat {
        font-size: 18px;
        line-height: 22px;
    }

    .result-message {
        margin: 0 20px;
    }

    .result-details {
        padding: 0 20px;
    }

    .result-detail-label,
    .result-detail-value {
        font-size: 18px;
        line-height: 22px;
    }

    .result-cta {
        padding: 0 20px;
    }

    .result-cta-badge {
        font-size: 16px;
        line-height: 20px;
        padding: 4px 14px;
    }

    .result-cta-title {
        font-size: 22px;
        line-height: 28px;
    }
}

@media (max-width: 480px) {
    .result-header {
        padding: 12px 16px;
        gap: 15px;
    }

    .result-icon {
        width: 40px;
        height: 40px;
    }

    .result-icon i {
        font-size: 40px;
        line-height: 40px;
    }

    .result-title {
        font-size: 22px;
        line-height: 28px;
    }

    .result-vat {
        font-size: 16px;
        line-height: 20px;
    }

    .result-message {
        margin: 0 16px;
        padding: 8px 12px;
    }

    .result-message p {
        font-size: 14px;
        line-height: 18px;
    }

    .result-details {
        padding: 0 16px;
        gap: 15px;
    }

    .result-detail-label,
    .result-detail-value {
        font-size: 16px;
        line-height: 20px;
    }

    .result-cta {
        padding: 0 16px;
        gap: 15px;
    }

    .result-cta-badge {
        font-size: 14px;
        line-height: 18px;
        padding: 4px 12px;
    }

    .result-cta-title {
        font-size: 18px;
        line-height: 24px;
    }

    .result-cta-description {
        font-size: 14px;
        line-height: 18px;
    }

    .cta-card.result-card {
        padding-bottom: 30px;
    }
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 40px 20px;
    gap: 10px;
    width: 100%;
    max-width: 1000px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
    flex: 1;
}

.footer-tagline {
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    letter-spacing: -0.03em;
    color: #000000;
    text-align: right;
}

.footer-legal {
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    letter-spacing: -0.03em;
    color: rgba(0, 0, 0, 0.7);
    text-align: right;
}

.footer-legal a {
    color: rgba(0, 0, 0, 0.7);
}

.footer-legal a.footer-link-legal {
    text-decoration: underline;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 30px 20px;
    }

    .footer-content {
        align-items: center;
    }

    .footer-tagline,
    .footer-legal {
        text-align: center;
    }

    .footer-tagline {
        font-size: 14px;
        line-height: 18px;
    }

    .footer-legal {
        font-size: 12px;
        line-height: 16px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 24px 16px;
    }

    .footer-tagline {
        font-size: 13px;
        line-height: 17px;
    }

    .footer-legal {
        font-size: 11px;
        line-height: 15px;
    }
}
