/* Import Google Font 'Outfit' */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700;800&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    display: flex;
    justify-content: flex-start; 
    align-items: stretch; 
    min-height: 100vh;
    margin: 0;
    color: #2d3748;
    flex-direction: column;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- SITE HEADER (Image Logo) --- */
.site-header {
    width: 100%;
    padding: 20px 5%;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 70px; /* Size adjustment for the new image */
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
    transition: transform 0.2s;
}

.logo-img:hover {
    transform: scale(1.02);
}

/* --- MAIN CONTAINER (Wide Dashboard) --- */
.container {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem 3rem;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 750px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    margin: 4vh auto 0 auto; 
}

.box-intro {
    margin-top: 0;
    margin-bottom: 25px;
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 700;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* --- INPUT STYLING --- */
.main-input {
    width: 100%;
    padding: 14px 15px;
    border: 2px solid #e2e8f0;
    background: #fff;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-input:focus {
    border-color: #23a6d5;
    box-shadow: 0 0 0 4px rgba(35, 166, 213, 0.2);
    transform: translateY(-2px);
}

/* Custom Name Field Group */
.custom-field-group {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    text-align: left;
    flex: 2; 
}

.prefix {
    background: #edf2f7;
    color: #718096;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 14px 12px;
    border-right: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    white-space: nowrap;
    user-select: none;
}

.custom-field-group input[type="text"] {
    border: none;
    box-shadow: none;
    background: #fff;
    padding: 14px 10px;
    width: 100%;
    outline: none;
    color: #2d3748;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
}

.custom-field-group:focus-within {
    border-color: #23a6d5;
    box-shadow: 0 0 0 4px rgba(35, 166, 213, 0.2);
    transform: translateY(-2px);
}

.custom-field-group:focus-within .prefix {
    background: #e1f4fc;
    color: #23a6d5;
    border-right-color: #bbeeef;
}

.custom-field-group input[type="text"]::placeholder {
    color: #cbd5e0;
    font-weight: 400;
    font-size: 0.9rem;
}

/* --- PRIMARY BUTTON --- */
.primary-btn {
    padding: 14px 30px;
    border: none;
    background: linear-gradient(45deg, #FF512F 0%, #DD2476 100%);
    color: white;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px -5px rgba(221, 36, 118, 0.5);
    width: auto; 
    flex: 1; 
    white-space: nowrap;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -8px rgba(221, 36, 118, 0.6);
    filter: brightness(1.1);
}

.primary-btn:active {
    transform: translateY(0);
}

/* --- MESSAGES --- */
.message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.error {
    background-color: #fff5f5;
    color: #e53e3e;
    border: 2px solid #feb2b2;
    font-weight: 700;
}

.success {
    background-color: #fff5f7;
    border: 2px solid #f687b3;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.success p {
    color: #b83280;
    font-weight: 700;
    margin: 0;
}

.short-url {
    font-size: 1.3rem;
    font-weight: 800;
    color: #23a6d5;
    text-decoration: none;
    word-break: break-all;
    margin: 5px 0;
}

/* ACTION BUTTONS */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: white;
    color: #4b5563;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
    flex: 1;
}

.action-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.action-btn:active {
    transform: translateY(0);
}

.copy-btn { color: #2563eb; }
.share-btn { color: #db2777; }

/* --- SEO CONTENT SECTION --- */
.content-container {
    width: 90%;
    max-width: 800px;
    margin-top: 40px;
    margin-bottom: 60px;
    color: white;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
    margin-left: auto;
    margin-right: auto;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.content-block h2, .faq-section h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
    display: inline-block;
}

.content-block p, .faq-item p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    opacity: 0.95;
}

/* Feature List with New Ticks */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 12px;
    font-size: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.tick-icon {
    width: 22px;
    height: 22px;
    color: #4ade80; /* Bright Green */
    flex-shrink: 0;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2));
}

/* FAQ Styles */
.faq-section {
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 20px;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-item strong {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
    color: #fff;
}

/* --- FOOTER (Black Bar) --- */
.site-footer {
    width: 100%;
    background-color: #000000;
    text-align: center;
    padding: 25px 0;
    margin-top: auto;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 700px) {
    .form-row { flex-direction: column; }
    .primary-btn { width: 100%; }
    .container { padding: 2rem; }
    .content-grid { grid-template-columns: 1fr; }
}