@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

:root {
    --google-blue: #4285F4;
    --google-red: #EA4335;
    --google-yellow: #FBBC05;
    --google-green: #34A853;
    --dark-bg: #1a1a1a;
    --dark-card: #2d2d2d;
    --text-color: #ffffff;
    --card-width: 637px;
    --card-height: 1004px;
    --corner-size: 190px;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: var(--dark-bg);
    color: var(--text-color);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background: var(--dark-card);
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    display: flex;
    gap: 40px;
}

.form-section {
    flex: 1;
    min-width: 300px;
}

.preview-section {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    padding: 20px;
    min-height: 600px;
}

.business-card {
    width: var(--card-width);
    height: var(--card-height);
    background: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    box-sizing: border-box;
}

.preview-card {
    transform: scale(0.5);
    transform-origin: top center;
    margin-bottom: -502px;
    display: block;
    z-index: 1;
}

.flash-message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
}

.flash-message.error {
    background-color: var(--google-red);
    color: white;
}

.flash-message.success {
    background-color: var(--google-green);
    color: white;
}

.corner {
    position: absolute;
    width: var(--corner-size);
    height: var(--corner-size);
    z-index: 2;
}

.corner-top-left {
    top: 0;
    left: 0;
    background: var(--google-blue);
    clip-path: polygon(0 0, 100% 0, 0 50%);
}

.corner-top-right {
    top: 0;
    right: 0;
    background: var(--google-red);
    clip-path: polygon(0 0, 100% 0, 100% 50%);
}

.corner-bottom-left {
    bottom: 0;
    left: 0;
    background: var(--google-yellow);
    clip-path: polygon(0 50%, 100% 100%, 0 100%);
}

.corner-bottom-right {
    bottom: 0;
    right: 0;
    background: var(--google-green);
    clip-path: polygon(100% 50%, 100% 100%, 0% 100%);
}

.logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 20px;
    min-height: 150px;
    box-sizing: border-box;
    width: 100%;
    margin-top: 40px;
}

.logo img {
    max-width: 400px;
    max-height: 150px;
    object-fit: contain;
    mix-blend-mode: multiply;
    background-color: transparent;
}

.company-name-display {
    font-size: 36px;
    font-weight: bold;
    color: #000000;
    text-align: center;
    padding: 20px;
    word-wrap: break-word;
}

.qr-code {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.qr-code img {
    width: 390px;
    height: 390px;
    display: block;
}

.scan-text {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    margin-top: 30px;
    position: relative;
    z-index: 1;
    color: #000000;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.scan-text div {
    line-height: 1.2;
}

.rating {
    text-align: center;
    margin-top: 25px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.google-logo {
    height: 60px;
    width: auto;
    margin-bottom: 8px;
}

.stars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.star {
    width: 40px;
    height: 40px;
}

.branding-text {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-color);
}

.branding-text .service-text {
    font-size: 16px;
    margin-bottom: 5px;
}

.branding-text .company-name {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 2px;
}

.actions {
    margin-top: 20px;
    text-align: center;
}

.download-btn,
button[type="submit"] {
    display: inline-block;
    padding: 12px 24px;
    margin: 0 10px;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.download-btn:hover,
button[type="submit"]:hover {
    background: #f5f5f5;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--text-color);
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #333;
    color: white;
}

input:focus {
    outline: none;
    border-color: var(--google-blue);
}
