/*
Theme Name: SteamExchange
Template: twentytwentyfive
Description: Child theme for Twenty Twenty-Five
Version: 1.0
Author: Mark Biek
*/

body {
	background: #fcfcfc;
}

.wp-site-blocks .entry-content {
	background: #fff;
	margin: 1rem auto;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.entry-content {
	padding: 1rem;
}

/* Remove gap between cover block and navigation */
.wp-block-cover {
    margin-bottom: 0 !important;
}

.wp-block-navigation,
.wp-block-group:has(.wp-block-navigation) {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove any default spacing between blocks */
.wp-site-blocks > * + * {
    margin-block-start: 0 !important;
}

/* Specifically target header and first content */
header + * {
    margin-top: 0 !important;
}

.header-logo {
  display: block;
  position: absolute;
  top: -100px;
  left: 4px;
}

/* Form Container */
.wp-block-group.form-section {
    padding: 60px 40px;
    background-color: #ffffff;
    max-width: 800px;
    margin: 0 auto;
}

/* Form Headings */
.form-section h2 {
    color: #5CBFBB; /* Your logo teal */
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.form-section h3 {
    color: #333333;
    font-size: 24px;
    margin-bottom: 20px;
}

/* Input Fields */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    color: #333333;
    background-color: #ffffff;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

/* Input Focus State */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #5CBFBB; /* Your logo teal */
    box-shadow: 0 0 0 3px rgba(92, 191, 187, 0.1);
}

/* Textarea */
textarea {
    min-height: 150px;
    resize: vertical;
}

/* Labels */
label {
    display: block;
    color: #333333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Required Field Indicator */
.required,
label .required {
    color: #e74c3c;
}

/* Form Buttons */
.form-section input[type="submit"],
.form-section button[type="submit"],
input[type="submit"],
button[type="submit"]
.wp-block-button__link {
    background-color: #5CBFBB; /* Your logo teal */
    color: #ffffff;
    padding: 16px 40px;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.form-section input[type="submit"]:hover,
.form-section button[type="submit"]:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover {
    background-color: #4aa9a5; /* Darker teal on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(92, 191, 187, 0.3);
}

/* Secondary Button Style */
.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent;
    border: 2px solid #5CBFBB;
    color: #5CBFBB;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: #5CBFBB;
    color: #ffffff;
}

/* Checkboxes and Radio Buttons */
input[type="checkbox"],
input[type="radio"] {
    width: auto;
    margin-right: 10px;
    accent-color: #5CBFBB; /* Modern browsers */
}

/* Fieldsets */
fieldset {
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

legend {
    color: #333333;
    font-weight: 600;
    font-size: 18px;
    padding: 0 10px;
}

/* Error Messages */
.error-message,
.form-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: -15px;
    margin-bottom: 15px;
    display: block;
}

/* Success Messages */
.success-message,
.form-success {
    background-color: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-radius: 6px;
    border-left: 4px solid #28a745;
    margin-bottom: 20px;
}

/* Help Text */
.help-text,
small {
    color: #666666;
    font-size: 14px;
    display: block;
    margin-top: -15px;
    margin-bottom: 15px;
}

/* Form Row Layout (two columns) */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row > * {
    flex: 1;
}

/* Placeholder Styling */
::placeholder {
    color: #999999;
    opacity: 1;
}

/* Select Dropdown Arrow */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23333333' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 45px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .form-section {
        padding: 40px 20px;
    }

    .form-section h2 {
        font-size: 28px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    input[type="submit"],
    button[type="submit"] {
        width: 100%;
    }
}

/* Specific Form Plugin Styles */

/* Ninja Forms */
.nf-form-cont input[type="text"],
.nf-form-cont input[type="email"],
.nf-form-cont textarea,
.nf-form-cont select {
    /* Inherits styles from above */
}
