/* style.css - Mobile-First Responsive Currency Converter */

:root {
    --primary-color: #005c99;
    --accent-color: #0099cc;
    --bg-light: #f9f9f9;
    --text-color: #333;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: var(--text-color);
    line-height: 1.6;
}

header,
main,
footer {
    padding: 1rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* social */
.social-links {
    margin-top: 0.5rem;
}

.social-links a {
    margin: 0 0.35rem;
    font-size: 1.25rem;
    /* adjust size here */
    color: #666;
    transition: color 0.2s, transform 0.2s;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-1px);
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

/* logo start */
/* --- Logo Refinement --- */
.site-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1;
}

/* Controls logo container size */
.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    /* adjust overall logo size */
    height: 32px;
}

/* Makes sure the SVG or image fits nicely */
.logo-mark img {
    width: 100%;
    height: auto;
    display: block;
}

/* Wordmark styling */
.logo-text {
    display: inline-flex;
    align-items: baseline;
    gap: 0.05rem;
    letter-spacing: 0.02em;
}

.logo-sub {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
}


/* logo end  */
nav a {
    color: var(--primary-color);
    margin-left: 1rem;
    text-decoration: none;
    font-weight: 500;
}

nav a:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero {
    text-align: center;
    background: linear-gradient(to right, #e0f4ff, #ffffff);
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.hero h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.1rem;
    color: #555;
}

/* Converter */
.converter-container {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    text-align: center;
}

.converter-container h2 {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}


/* hostinger hosting */

.affiliate-box {
    text-align: center;
    background: #f8fbff;
    border: 1px solid #dcecff;
    padding: 1rem;
    margin: 2rem auto;
    border-radius: 8px;
    max-width: 600px;
}

.affiliate-box p {
    margin-bottom: 1px;
}

.affiliate-btn {
    display: inline-block;
    background-color: #6c63ff;
    color: white;
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.affiliate-btn:hover {
    background-color: #5148e5;
}

.affiliate-disclaimer {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
}



/* end hostinger hosting */


.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.input-group label {
    text-align: left;
    font-weight: 600;
}

.input-group input {
    padding: 0.6rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
}

.input-group input:focus {
    border-color: var(--accent-color);
    outline: none;
}

/* Ads Placeholder */
.ad-banner {
  min-height: 90px;
  margin: 2rem 0;
  text-align: center;
  padding: 1rem;
  color: #888;
 
}

/* Info Section */
.info-section {
    margin-top: 2rem;
}

.info-section h2 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-section p,
.info-section ul {
    margin-bottom: 1rem;
}

.info-section ul {
    padding-left: 1.2rem;
    list-style: disc;
}

/* Contact */
.contact-section {
    background-color: #f0f7ff;
    padding: 2rem 1rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.contact-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.3rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.6rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.contact-form button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
    width: 100%;
}

.contact-form button:hover {
    background-color: var(--accent-color);
}

.recaptcha-wrap {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.success-msg {
    margin-top: 1rem;
    color: #1a7f37;
    text-align: center;
    font-size: 0.95rem;
}

.error-msg {
    margin-top: 1rem;
    color: #c53030;
    text-align: center;
    font-size: 0.95rem;
}


/* Footer */
footer {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 2rem;
    padding-bottom: 1rem;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .input-group {
        flex-direction: row;
        align-items: center;
    }

    .input-group label {
        flex: 1;
    }

    .input-group input {
        flex: 2;
    }
}